I'm using an MWPhotoBrowser instance to show albums or single images in my app. While using a navigation controller, I can simply press the back button to pop the view controller. I wish to present it modally but I can't figure out how to dismiss it. I tried the following code in the hopes that I would be able to swipe down to dismiss, but to no avail.
let browser = MWPhotoBrowser(photos: photos)
browser?.delegate = self
browser?.enableSwipeToDismiss
self.present(browser!, animated: true, completion: nil)
(photos is an array of MWPhoto)
Can anyone point me to a solution? Thanks.