Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhillc authored Jun 21, 2017
1 parent 6965025 commit 472aa1a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
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)
```

0 comments on commit 472aa1a

Please sign in to comment.