let photo = AXPhoto(attributedTitle: NSAttributedString(string: "Sent by \(comment.name)"),
attributedDescription: nil,
attributedCredit: nil,
url: URL(string: comment.attachmentURL!))
let transitionInfo = AXTransitionInfo(interactiveDismissalEnabled: true, startingView: cell.imageAttachmentView) { [] (photo, index) -> UIImageView? in
// this closure can be used to adjust your UI before returning an `endingImageView`.
cell.imageAttachmentView
}
let dataSource = AXPhotosDataSource(photos: [photo])
let photosViewController = AXPhotosViewController(dataSource: dataSource, pagingConfig: nil, transitionInfo: transitionInfo)
self.present(photosViewController, animated: true)
What happens
Photo disappears and loading indicator shows briefly.
What should happen
Initial photo should remain while the other photo is loading to prevent flashing screen.
To replicate
What happens Photo disappears and loading indicator shows briefly.
What should happen Initial photo should remain while the other photo is loading to prevent flashing screen.