Krisiacik / ImageViewer

An image viewer à la Twitter
MIT License
2.53k stars 385 forks source link

How to present ImageView like sample? #242

Closed kamechan8 closed 4 years ago

kamechan8 commented 4 years ago

I want to present and dismiss just like this. Tell me how to set GalleryConfiguration.

tap

My current code

let gv = GalleryViewController(startIndex: index!, itemsDataSource: self, itemsDelegate: self, displacedViewsDataSource: self, configuration: galleryConfiguration())
        present(gv, animated: true, completion: nil)

func galleryConfiguration() -> GalleryConfiguration {
     return [
          .displacementTransitionStyle(.normal),
     ]
}
kamechan8 commented 4 years ago

Please set GalleryDisplacedViewsDataSource