Krisiacik / ImageViewer

An image viewer à la Twitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to present ImageView like sample?

kamechan8 opened this issue · comments

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),
     ]
}

Please set GalleryDisplacedViewsDataSource