Skip to content

Instantly share code, notes, and snippets.

@zontan
Created July 6, 2020 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zontan/bfaf191528c4d860347b915625c34b73 to your computer and use it in GitHub Desktop.
Save zontan/bfaf191528c4d860347b915625c34b73 to your computer and use it in GitHub Desktop.
@IBAction func didTapInvite(_ sender: Any) {
let storyboard = UIStoryboard(name: "JoinFriendViewController", bundle: nil)
let joinVC = storyboard.instantiateInitialViewController()!
// Use the popover presentation style for your view controller.
joinVC.modalPresentationStyle = .popover
if let joinFriendVC = joinVC as? JoinFriendViewController {
joinFriendVC.delegate = self
}
// Present the view controller.
self.present(joinVC, animated: true) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment