Skip to content

Instantly share code, notes, and snippets.

@markvanwijnen
Last active March 8, 2021 18:47
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 markvanwijnen/76de0ac0cf0f8ed14b6bfdcec5c519e6 to your computer and use it in GitHub Desktop.
Save markvanwijnen/76de0ac0cf0f8ed14b6bfdcec5c519e6 to your computer and use it in GitHub Desktop.
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