Skip to content

Instantly share code, notes, and snippets.

@mhijack
Created June 13, 2021 00:16
Show Gist options
  • Save mhijack/27a9f235548f16688629597bfda2a007 to your computer and use it in GitHub Desktop.
Save mhijack/27a9f235548f16688629597bfda2a007 to your computer and use it in GitHub Desktop.
@main
struct BookApp: App {
@StateObject private var store = BookStore()
var body: some Scene {
WindowGroup {
ContentView(store: store) // Clear dependency injection than Singletons
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment