Created
March 18, 2022 19:34
-
-
Save Thonyvb/06dc3da1699bc8850ec11d8434e5c2f4 to your computer and use it in GitHub Desktop.
SwiftUI ObservableObject
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
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