Created
May 17, 2020 14:08
-
-
Save AlexandreCools/2f0cb497489a0e4615b22f7a7e396d65 to your computer and use it in GitHub Desktop.
[MEDIUM] Strava API - Access & Refresh token - iOS 13, Swift 5 - Step 3
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
| extension ViewController: ASWebAuthenticationPresentationContextProviding { | |
| func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor { | |
| UIApplication.shared.windows[0] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment