Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,15 @@ public class AttachmentPrepViewController: OWSViewController {
private func presentFullScreen(viewController: UIViewController) {
if let presentedViewController = presentedViewController {
owsAssertDebug(false, "Already has presented view controller. [\(presentedViewController)]")
presentedViewController.dismiss(animated: false)
presentedViewController.dismiss(animated: false) { [weak self] in
self?.presentFullScreen(viewController: viewController)
}
return
}

viewController.modalPresentationStyle = .fullScreen
zoomOut(animated: true) { [weak self] in
self?.presentFullScreen(viewController, animated: false)
self?.present(viewController, animated: false, completion: nil)
Comment on lines 228 to +230
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Especially since this isn't related to the fix, I'm more inclined to drop the viewController.modalPresentationStyle = .fullScreen here, and continue to call self.presentFullScreen here.

}
}

Expand Down