Skip to content

Instantly share code, notes, and snippets.

@cardoso
Created May 1, 2020 17:54
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 cardoso/d7a18fb5006f41563cd1e00d6125be9c to your computer and use it in GitHub Desktop.
Save cardoso/d7a18fb5006f41563cd1e00d6125be9c to your computer and use it in GitHub Desktop.
extension AuthViewController: ASAuthorizationControllerPresentationContextProviding {
func presentationAnchor(for controller: ASAuthorizationController) -> ASPresentationAnchor {
return self.view.window!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment