-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
# AXPhotoViewer | ||
An iPhone/iPad photo gallery viewer, useful for viewing a large number of photos. (WIP) | ||
AXPhotoViewer is an iOS photo viewer that is useful for viewing a very large (or very small!) amount of images and GIFs. This library supports contextual presentation and dismissal, interactive "flick-to-dismiss" behavior, and easily integrates with many third party async image downloading/caching libraries. | ||
|
||
While AXPhotoViewer has many configurable properties on each of its modules, it is easy to throw down some initialization code and get started: | ||
|
||
```swift | ||
let dataSource = PhotosDataSource(photos: self.photos, prefetchBehavior: .regular) | ||
let pagingConfig = PagingConfig(navigationOrientation: .horizontal) | ||
let transitionInfo = TransitionInfo(startingView: self.startinImageView) { [weak self] (photo, index) -> UIImageView? in | ||
return self?.endingImageView | ||
} | ||
|
||
let photosViewController = PhotosViewController(dataSource: dataSource, pagingConfig: pagingConfig, transitionInfo: transitionInfo) | ||
self.present(photosViewController, animated: true, completion: nil) | ||
``` | ||
|