Skip to content

Instantly share code, notes, and snippets.

@nezhyborets
Last active February 10, 2017 16:39
Show Gist options
  • Save nezhyborets/5b8e933bd5ebd807ad78b43c313d0a3f to your computer and use it in GitHub Desktop.
Save nezhyborets/5b8e933bd5ebd807ad78b43c313d0a3f to your computer and use it in GitHub Desktop.
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