Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Add support for interstitial views
Browse files Browse the repository at this point in the history
  • Loading branch information
craighowarth committed Apr 19, 2018
1 parent 5c4cf7f commit f3fd0b8
Show file tree
Hide file tree
Showing 13 changed files with 303 additions and 70 deletions.
26 changes: 16 additions & 10 deletions NYTPhotoViewer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
1110845D1C87682300699670 /* NYTScalingImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 111084441C87682300699670 /* NYTScalingImageView.m */; };
1110845E1C87682300699670 /* NYTPhoto.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084461C87682300699670 /* NYTPhoto.h */; settings = {ATTRIBUTES = (Public, ); }; };
1110845F1C87682300699670 /* NYTPhotoCaptionViewLayoutWidthHinting.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084471C87682300699670 /* NYTPhotoCaptionViewLayoutWidthHinting.h */; settings = {ATTRIBUTES = (Public, ); }; };
111084601C87682300699670 /* NYTPhotoContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084481C87682300699670 /* NYTPhotoContainer.h */; settings = {ATTRIBUTES = (Public, ); }; };
111084601C87682300699670 /* NYTPhotoViewerContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084481C87682300699670 /* NYTPhotoViewerContainer.h */; settings = {ATTRIBUTES = (Public, ); }; };
111084611C87682300699670 /* NYTPhotoViewerDataSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084491C87682300699670 /* NYTPhotoViewerDataSource.h */; settings = {ATTRIBUTES = (Public, ); }; };
111084621C87682300699670 /* NSBundle+NYTPhotoViewer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1110844B1C87682300699670 /* NSBundle+NYTPhotoViewer.h */; settings = {ATTRIBUTES = (Public, ); }; };
111084631C87682300699670 /* NSBundle+NYTPhotoViewer.m in Sources */ = {isa = PBXBuildFile; fileRef = 1110844C1C87682300699670 /* NSBundle+NYTPhotoViewer.m */; };
Expand Down Expand Up @@ -78,7 +78,7 @@
11FBDA9D1C87753200018169 /* NYTScalingImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 111084441C87682300699670 /* NYTScalingImageView.m */; };
11FBDA9E1C87753200018169 /* NYTPhoto.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084461C87682300699670 /* NYTPhoto.h */; settings = {ATTRIBUTES = (Public, ); }; };
11FBDA9F1C87753200018169 /* NYTPhotoCaptionViewLayoutWidthHinting.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084471C87682300699670 /* NYTPhotoCaptionViewLayoutWidthHinting.h */; settings = {ATTRIBUTES = (Public, ); }; };
11FBDAA01C87753200018169 /* NYTPhotoContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084481C87682300699670 /* NYTPhotoContainer.h */; settings = {ATTRIBUTES = (Public, ); }; };
11FBDAA01C87753200018169 /* NYTPhotoViewerContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084481C87682300699670 /* NYTPhotoViewerContainer.h */; settings = {ATTRIBUTES = (Public, ); }; };
11FBDAA11C87753200018169 /* NYTPhotoViewerDataSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 111084491C87682300699670 /* NYTPhotoViewerDataSource.h */; settings = {ATTRIBUTES = (Public, ); }; };
11FBDAA21C87753200018169 /* NSBundle+NYTPhotoViewer.h in Headers */ = {isa = PBXBuildFile; fileRef = 1110844B1C87682300699670 /* NSBundle+NYTPhotoViewer.h */; settings = {ATTRIBUTES = (Public, ); }; };
11FBDAA31C87753200018169 /* NSBundle+NYTPhotoViewer.m in Sources */ = {isa = PBXBuildFile; fileRef = 1110844C1C87682300699670 /* NSBundle+NYTPhotoViewer.m */; };
Expand All @@ -95,7 +95,8 @@
11FBDAFF1C877F8000018169 /* giphy.gif in Resources */ = {isa = PBXBuildFile; fileRef = 111084851C876B0400699670 /* giphy.gif */; };
1AFC4D301FE01B9000FDF949 /* NYTPhotoViewerArrayDataSourceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 111084271C8767BA00699670 /* NYTPhotoViewerArrayDataSourceTests.m */; };
1AFC4D321FE01EFA00FDF949 /* NYTPhotoViewerSinglePhotoDataSourceTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AFC4D311FE01EFA00FDF949 /* NYTPhotoViewerSinglePhotoDataSourceTests.m */; };
9371A73C1E438B9C00A8F2EF /* Photo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9371A73B1E438B9C00A8F2EF /* Photo.swift */; };
2A4D6135208683990092ED17 /* NYTInterstitialViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A4D6134208683990092ED17 /* NYTInterstitialViewController.m */; };
9371A73C1E438B9C00A8F2EF /* PhotoItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9371A73B1E438B9C00A8F2EF /* PhotoItem.swift */; };
9371A7441E438BCE00A8F2EF /* PhotoBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9371A7431E438BCE00A8F2EF /* PhotoBox.swift */; };
9371A7461E43D61E00A8F2EF /* PhotoViewerCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9371A7451E43D61E00A8F2EF /* PhotoViewerCoordinator.swift */; };
93F45B181E3BB5610093DB93 /* NYTPhotoViewerSinglePhotoDataSource.h in Headers */ = {isa = PBXBuildFile; fileRef = 93F45B161E3BB5610093DB93 /* NYTPhotoViewerSinglePhotoDataSource.h */; settings = {ATTRIBUTES = (Public, ); }; };
Expand Down Expand Up @@ -264,7 +265,7 @@
111084441C87682300699670 /* NYTScalingImageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NYTScalingImageView.m; sourceTree = "<group>"; };
111084461C87682300699670 /* NYTPhoto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NYTPhoto.h; sourceTree = "<group>"; };
111084471C87682300699670 /* NYTPhotoCaptionViewLayoutWidthHinting.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NYTPhotoCaptionViewLayoutWidthHinting.h; sourceTree = "<group>"; };
111084481C87682300699670 /* NYTPhotoContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NYTPhotoContainer.h; sourceTree = "<group>"; };
111084481C87682300699670 /* NYTPhotoViewerContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NYTPhotoViewerContainer.h; sourceTree = "<group>"; };
111084491C87682300699670 /* NYTPhotoViewerDataSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NYTPhotoViewerDataSource.h; sourceTree = "<group>"; };
1110844B1C87682300699670 /* NSBundle+NYTPhotoViewer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSBundle+NYTPhotoViewer.h"; sourceTree = "<group>"; };
1110844C1C87682300699670 /* NSBundle+NYTPhotoViewer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSBundle+NYTPhotoViewer.m"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -295,7 +296,9 @@
11FBDAF01C877C8B00018169 /* PhotosProvider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PhotosProvider.swift; sourceTree = "<group>"; };
11FBDAFC1C877D9A00018169 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
1AFC4D311FE01EFA00FDF949 /* NYTPhotoViewerSinglePhotoDataSourceTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NYTPhotoViewerSinglePhotoDataSourceTests.m; sourceTree = "<group>"; };
9371A73B1E438B9C00A8F2EF /* Photo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Photo.swift; sourceTree = "<group>"; };
2A4D6134208683990092ED17 /* NYTInterstitialViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NYTInterstitialViewController.m; sourceTree = "<group>"; };
2A4D613C208683B80092ED17 /* NYTInterstitialViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NYTInterstitialViewController.h; sourceTree = "<group>"; };
9371A73B1E438B9C00A8F2EF /* PhotoItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PhotoItem.swift; sourceTree = "<group>"; };
9371A7431E438BCE00A8F2EF /* PhotoBox.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PhotoBox.swift; sourceTree = "<group>"; };
9371A7451E43D61E00A8F2EF /* PhotoViewerCoordinator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PhotoViewerCoordinator.swift; sourceTree = "<group>"; };
93F45B161E3BB5610093DB93 /* NYTPhotoViewerSinglePhotoDataSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NYTPhotoViewerSinglePhotoDataSource.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -391,6 +394,8 @@
111084401C87682300699670 /* NYTPhotoTransitionController.m */,
111084411C87682300699670 /* NYTPhotoViewController.h */,
111084421C87682300699670 /* NYTPhotoViewController.m */,
2A4D613C208683B80092ED17 /* NYTInterstitialViewController.h */,
2A4D6134208683990092ED17 /* NYTInterstitialViewController.m */,
111084371C87682300699670 /* NYTPhotoViewerArrayDataSource.h */,
111084381C87682300699670 /* NYTPhotoViewerArrayDataSource.m */,
93F45B161E3BB5610093DB93 /* NYTPhotoViewerSinglePhotoDataSource.h */,
Expand Down Expand Up @@ -425,7 +430,7 @@
children = (
111084461C87682300699670 /* NYTPhoto.h */,
111084471C87682300699670 /* NYTPhotoCaptionViewLayoutWidthHinting.h */,
111084481C87682300699670 /* NYTPhotoContainer.h */,
111084481C87682300699670 /* NYTPhotoViewerContainer.h */,
111084491C87682300699670 /* NYTPhotoViewerDataSource.h */,
);
path = Protocols;
Expand Down Expand Up @@ -506,7 +511,7 @@
9371A7451E43D61E00A8F2EF /* PhotoViewerCoordinator.swift */,
11FBDAF01C877C8B00018169 /* PhotosProvider.swift */,
9371A7431E438BCE00A8F2EF /* PhotoBox.swift */,
9371A73B1E438B9C00A8F2EF /* Photo.swift */,
9371A73B1E438B9C00A8F2EF /* PhotoItem.swift */,
11FBDAE21C877BD600018169 /* Main.storyboard */,
11FBDAFB1C877D9A00018169 /* LaunchScreen.xib */,
11FBDAEA1C877BD600018169 /* Info.plist */,
Expand All @@ -523,7 +528,7 @@
files = (
111084621C87682300699670 /* NSBundle+NYTPhotoViewer.h in Headers */,
111084541C87682300699670 /* NYTPhotosViewController.h in Headers */,
111084601C87682300699670 /* NYTPhotoContainer.h in Headers */,
111084601C87682300699670 /* NYTPhotoViewerContainer.h in Headers */,
1110844E1C87682300699670 /* NYTPhotoDismissalInteractionController.h in Headers */,
111084611C87682300699670 /* NYTPhotoViewerDataSource.h in Headers */,
1110845A1C87682300699670 /* NYTPhotoViewController.h in Headers */,
Expand All @@ -545,7 +550,7 @@
buildActionMask = 2147483647;
files = (
11FBDA981C87753200018169 /* NYTPhotoTransitionController.h in Headers */,
11FBDAA01C87753200018169 /* NYTPhotoContainer.h in Headers */,
11FBDAA01C87753200018169 /* NYTPhotoViewerContainer.h in Headers */,
11FBDA9C1C87753200018169 /* NYTScalingImageView.h in Headers */,
11FBDA921C87753200018169 /* NYTPhotosOverlayView.h in Headers */,
11FBDA8E1C87753200018169 /* NYTPhotoDismissalInteractionController.h in Headers */,
Expand Down Expand Up @@ -828,6 +833,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2A4D6135208683990092ED17 /* NYTInterstitialViewController.m in Sources */,
111084591C87682300699670 /* NYTPhotoTransitionController.m in Sources */,
111084631C87682300699670 /* NSBundle+NYTPhotoViewer.m in Sources */,
111084551C87682300699670 /* NYTPhotosViewController.m in Sources */,
Expand Down Expand Up @@ -896,7 +902,7 @@
11FBDADF1C877BD600018169 /* AppDelegate.swift in Sources */,
9371A7461E43D61E00A8F2EF /* PhotoViewerCoordinator.swift in Sources */,
11FBDAF11C877C8B00018169 /* PhotosProvider.swift in Sources */,
9371A73C1E438B9C00A8F2EF /* Photo.swift in Sources */,
9371A73C1E438B9C00A8F2EF /* PhotoItem.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
31 changes: 31 additions & 0 deletions NYTPhotoViewer/NYTInterstitialViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// NYTInterstitialViewController.h
// NYTPhotoViewer
//
// Created by Howarth, Craig on 4/17/18.
// Copyright © 2018 NYTimes. All rights reserved.
//

@import UIKit;
#import "NYTPhotoViewerContainer.h"

NS_ASSUME_NONNULL_BEGIN

/**
* The view controller controlling the display of a interstitial view.
*/
@interface NYTInterstitialViewController : UIViewController <NYTPhotoViewerContainer>

/**
* The designated initializer that takes an interstitial view.
*
* @param view The view object that this view controller manages.
* @param itemIndex The index of this view controller in the photo viewer collection.
*
* @return A fully initialized object.
*/
- (instancetype)initWithView:(nullable UIView *)view itemIndex:(NSUInteger)itemIndex NS_DESIGNATED_INITIALIZER;

@end

NS_ASSUME_NONNULL_END
75 changes: 75 additions & 0 deletions NYTPhotoViewer/NYTInterstitialViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
//
// NYTInterstitialViewController.m
// NYTPhotoViewer
//
// Created by Howarth, Craig on 4/17/18.
// Copyright © 2018 NYTimes. All rights reserved.
//

#import "NYTInterstitialViewController.h"
#import "NYTPhoto.h"

@interface NYTInterstitialViewController ()

@property (nonatomic, nullable) id <NYTPhoto> photo;
@property (nonatomic, nullable) UIView *interstitialView;
@property (nonatomic) NSUInteger photoViewItemIndex;

- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;

@end

@implementation NYTInterstitialViewController

#pragma mark - UIViewController

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
return [self initWithView:nil itemIndex:0];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];

if (self) {
[self commonInitWithView:nil itemIndex:0];
}

return self;
}

- (void)viewDidLoad {
[super viewDidLoad];

[self.view addSubview:self.interstitialView];
self.interstitialView.center = CGPointMake(CGRectGetMidX(self.view.bounds), CGRectGetMidY(self.view.bounds));
}

- (void)viewWillLayoutSubviews {
[super viewWillLayoutSubviews];

self.interstitialView.center = CGPointMake(CGRectGetMidX(self.view.bounds), CGRectGetMidY(self.view.bounds));
}

- (BOOL)prefersHomeIndicatorAutoHidden {
return YES;
}

#pragma mark - NYTPhotoViewController

- (instancetype)initWithView:(UIView *)interstitialView itemIndex:(NSUInteger)itemIndex {
self = [super initWithNibName:nil bundle:nil];

if (self) {
[self commonInitWithView:interstitialView itemIndex:itemIndex];
}

return self;
}

- (void)commonInitWithView:(UIView *)interstitialView itemIndex:(NSUInteger)itemIndex {
_photo = nil;
_photoViewItemIndex = itemIndex;
_interstitialView = interstitialView;
}

@end
7 changes: 4 additions & 3 deletions NYTPhotoViewer/NYTPhotoViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

@import UIKit;
#import "NYTPhotoContainer.h"
#import "NYTPhotoViewerContainer.h"

@class NYTScalingImageView;

Expand All @@ -24,7 +24,7 @@ extern NSString * const NYTPhotoViewControllerPhotoImageUpdatedNotification;
/**
* The view controller controlling the display of a single photo object.
*/
@interface NYTPhotoViewController : UIViewController <NYTPhotoContainer>
@interface NYTPhotoViewController : UIViewController <NYTPhotoViewerContainer>

/**
* The internal scaling image view used to display the photo.
Expand All @@ -50,12 +50,13 @@ extern NSString * const NYTPhotoViewControllerPhotoImageUpdatedNotification;
* The designated initializer that takes the photo and activity view.
*
* @param photo The photo object that this view controller manages.
* @param itemIndex The index of this view controller in the photo viewer collection.
* @param loadingView The view to display while the photo's image loads. This view will be hidden when the image loads.
* @param notificationCenter The notification center on which to observe the `NYTPhotoViewControllerPhotoImageUpdatedNotification`.
*
* @return A fully initialized object.
*/
- (instancetype)initWithPhoto:(nullable id <NYTPhoto>)photo loadingView:(nullable UIView *)loadingView notificationCenter:(nullable NSNotificationCenter *)notificationCenter NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithPhoto:(nullable id <NYTPhoto>)photo itemIndex:(NSUInteger)itemIndex loadingView:(nullable UIView *)loadingView notificationCenter:(nullable NSNotificationCenter *)notificationCenter NS_DESIGNATED_INITIALIZER;

@end

Expand Down
16 changes: 10 additions & 6 deletions NYTPhotoViewer/NYTPhotoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

@interface NYTPhotoViewController () <UIScrollViewDelegate>

@property (nonatomic) id <NYTPhoto> photo;
@property (nonatomic, nullable) id <NYTPhoto> photo;
@property (nonatomic, nullable) UIView *interstitialView;
@property (nonatomic) NSUInteger photoViewItemIndex;

- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;

Expand All @@ -43,14 +45,14 @@ - (void)dealloc {
#pragma mark - UIViewController

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
return [self initWithPhoto:nil loadingView:nil notificationCenter:nil];
return [self initWithPhoto:nil itemIndex:0 loadingView:nil notificationCenter:nil];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];

if (self) {
[self commonInitWithPhoto:nil loadingView:nil notificationCenter:nil];
[self commonInitWithPhoto:nil itemIndex:0 loadingView:nil notificationCenter:nil];
}

return self;
Expand Down Expand Up @@ -86,18 +88,20 @@ - (BOOL)prefersHomeIndicatorAutoHidden {

#pragma mark - NYTPhotoViewController

- (instancetype)initWithPhoto:(id <NYTPhoto>)photo loadingView:(UIView *)loadingView notificationCenter:(NSNotificationCenter *)notificationCenter {
- (instancetype)initWithPhoto:(id <NYTPhoto>)photo itemIndex:(NSUInteger)itemIndex loadingView:(UIView *)loadingView notificationCenter:(NSNotificationCenter *)notificationCenter {
self = [super initWithNibName:nil bundle:nil];

if (self) {
[self commonInitWithPhoto:photo loadingView:loadingView notificationCenter:notificationCenter];
[self commonInitWithPhoto:photo itemIndex:itemIndex loadingView:loadingView notificationCenter:notificationCenter];
}

return self;
}

- (void)commonInitWithPhoto:(id <NYTPhoto>)photo loadingView:(UIView *)loadingView notificationCenter:(NSNotificationCenter *)notificationCenter {
- (void)commonInitWithPhoto:(id <NYTPhoto>)photo itemIndex:(NSUInteger)itemIndex loadingView:(UIView *)loadingView notificationCenter:(NSNotificationCenter *)notificationCenter {
_photo = photo;
_interstitialView = nil;
_photoViewItemIndex = itemIndex;

if (photo.imageData) {
_scalingImageView = [[NYTScalingImageView alloc] initWithImageData:photo.imageData frame:CGRectZero];
Expand Down
2 changes: 1 addition & 1 deletion NYTPhotoViewer/NYTPhotoViewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ FOUNDATION_EXPORT const unsigned char NYTPhotoViewerVersionString[];
// Protocols
#import <NYTPhotoViewer/NYTPhoto.h>
#import <NYTPhotoViewer/NYTPhotoCaptionViewLayoutWidthHinting.h>
#import <NYTPhotoViewer/NYTPhotoContainer.h>
#import <NYTPhotoViewer/NYTPhotoViewerContainer.h>
#import <NYTPhotoViewer/NYTPhotoViewerDataSource.h>

// Support
Expand Down
1 change: 1 addition & 0 deletions NYTPhotoViewer/NYTPhotoViewerArrayDataSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ NS_ASSUME_NONNULL_BEGIN

/**
* A simple concrete implementation of `NYTPhotoViewerDataSource`, for use with an array of images.
* Does not support interstitial views.
*/
@interface NYTPhotoViewerArrayDataSource : NSObject <NYTPhotoViewerDataSource, NSFastEnumeration>

Expand Down
2 changes: 1 addition & 1 deletion NYTPhotoViewer/NYTPhotoViewerCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ FOUNDATION_EXPORT const unsigned char NYTPhotoViewerCoreVersionString[];
// Protocols
#import <NYTPhotoViewer/NYTPhoto.h>
#import <NYTPhotoViewer/NYTPhotoCaptionViewLayoutWidthHinting.h>
#import <NYTPhotoViewer/NYTPhotoContainer.h>
#import <NYTPhotoViewer/NYTPhotoViewerContainer.h>
#import <NYTPhotoViewer/NYTPhotoViewerDataSource.h>

// Support
Expand Down
Loading

0 comments on commit f3fd0b8

Please sign in to comment.