Skip to content

Instantly share code, notes, and snippets.

@Thonyvb
Created March 18, 2022 19:34
Show Gist options
  • Save Thonyvb/06dc3da1699bc8850ec11d8434e5c2f4 to your computer and use it in GitHub Desktop.
Save Thonyvb/06dc3da1699bc8850ec11d8434e5c2f4 to your computer and use it in GitHub Desktop.
SwiftUI ObservableObject
class Prices: ObservableObject {
@Published var prices: [Int]
// ... obtain prices via API
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment