Last active
March 8, 2021 08:11
-
-
Save markvanwijnen/249849d71756250e7dc2187aa36d71e0 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
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