Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photo disappears and flashes loading indicator when presented #60

Open
bachonk opened this issue Jun 13, 2019 · 1 comment
Open

Photo disappears and flashes loading indicator when presented #60

bachonk opened this issue Jun 13, 2019 · 1 comment

Comments

@bachonk
Copy link

bachonk commented Jun 13, 2019

To replicate

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.

flash

@Rendel27
Copy link

Related to issue, but seems not solved yet :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants