AXPhotosDataSource
class AXPhotosDataSource : NSObject
AXPhotosDataSource
-
AXPhotosPrefetchBehavior
See moreDeclaration
Swift
enum AXPhotosPrefetchBehavior : Int
-
The fetching behavior that the
PhotosViewController
should take action with.conservative
, only the current photo will be loaded.regular
(default), the current photo, the previous photo, and the next photo will be loaded.aggressive
, the current photo, the previous two photos, and the next two photos will be loaded.Declaration
Swift
fileprivate(set) var prefetchBehavior: AXPhotosPrefetchBehavior
-
The initial photo index to display upon presentation.
Declaration
Swift
fileprivate(set) var initialPhotoIndex: Int
-
Number of photos
Declaration
Swift
var numberOfPhotos: Int { get }
-
Photo at index
Declaration
Swift
func photo(at index: Int) -> AXPhotoProtocol?
Parameters
index
Index