Last active
February 10, 2017 16:39
-
-
Save nezhyborets/5b8e933bd5ebd807ad78b43c313d0a3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let controller = s.feedbackDisplayController, controller.feedbackFormShouldShow() { | |
let controller = FeedbackViewController(controlsAB: controller.controlsAB(), name: controller.userName) | |
controller.modalTransitionStyle = .crossDissolve | |
controller.modalPresentationStyle = .overCurrentContext | |
if s.presentingViewController != nil { | |
s.present(controller, animated: true, completion: nil) | |
} else { | |
s.parent?.present(controller, animated: true, completion: nil) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment