Last active
March 8, 2021 18:47
-
-
Save markvanwijnen/76de0ac0cf0f8ed14b6bfdcec5c519e6 to your computer and use it in GitHub Desktop.
This file contains 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
class TwitterAPI: NSObject, ObservableObject { | |
@Published var authorizationSheetIsPresented = false // 1 | |
@Published var authorizationURL: URL? // 2 | |
@Published var user: User? // 3 | |
struct User { | |
let ID: String | |
let screenName: String | |
} | |
/* (...) */ | |
func authorize() {} // 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment