From 136441dbd7db91de4b07da6436461a62b1f42b04 Mon Sep 17 00:00:00 2001 From: Craig Howarth Date: Fri, 20 Apr 2018 11:22:54 -0400 Subject: [PATCH] fix: Example project NSObject conformance --- Example-Swift/PhotoViewerCoordinator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Example-Swift/PhotoViewerCoordinator.swift b/Example-Swift/PhotoViewerCoordinator.swift index 9dda2f79..2883f4e8 100644 --- a/Example-Swift/PhotoViewerCoordinator.swift +++ b/Example-Swift/PhotoViewerCoordinator.swift @@ -9,7 +9,7 @@ import NYTPhotoViewer /// Coordinates interaction between the application's data layer and the photo viewer component. -final class PhotoViewerCoordinator: NYTPhotoViewerDataSource { +final class PhotoViewerCoordinator: NSObject, NYTPhotoViewerDataSource { let slideshow: [NYTPhotoBox] let provider: PhotosProvider @@ -20,6 +20,7 @@ final class PhotoViewerCoordinator: NYTPhotoViewerDataSource { init(provider: PhotosProvider) { self.provider = provider self.slideshow = provider.fetchDemoSlideshow().map { NYTPhotoBox($0) } + super.init() self.fetchPhotos() }