Skip to content

Instantly share code, notes, and snippets.

@Thonyvb
Created March 18, 2022 19:36
Show Gist options
  • Save Thonyvb/247a1b6c8421986763dc365bb405b163 to your computer and use it in GitHub Desktop.
Save Thonyvb/247a1b6c8421986763dc365bb405b163 to your computer and use it in GitHub Desktop.
SwiftUI Property Wrappers StateObject
struct MainView: View {
@StateObject var prices = Prices()
// …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment