Skip to content

Instantly share code, notes, and snippets.

@zontan
Created July 6, 2020 22:05
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/785904f51a30cc496c6dff6123427ebf to your computer and use it in GitHub Desktop.
Save zontan/785904f51a30cc496c6dff6123427ebf to your computer and use it in GitHub Desktop.
@IBAction func didTapAddFriend(_ sender: Any) {
let storyboard = UIStoryboard(name: "UserSearchViewController", bundle: nil)
let searchVC = storyboard.instantiateInitialViewController()!
// Use the popover presentation style for your view controller.
searchVC.modalPresentationStyle = .popover
// Present the view controller.
self.present(searchVC, animated: true) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment