Skip to content

Instantly share code, notes, and snippets.

@markvanwijnen
Last active March 8, 2021 08:11
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/249849d71756250e7dc2187aa36d71e0 to your computer and use it in GitHub Desktop.
Save markvanwijnen/249849d71756250e7dc2187aa36d71e0 to your computer and use it in GitHub Desktop.
import SwiftUI
@main
struct TwitterTutorialApp: App {
@StateObject var twitterAPI = TwitterAPI() //1
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(twitterAPI) //2
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment