Created
September 8, 2020 05:33
-
-
Save ytyubox/47d653c9bfadb3f99b5562f85f5dfc7e to your computer and use it in GitHub Desktop.
Markdium-Inheriting existing Class type to support ObservableObject
This file contains hidden or 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 GamePlayer: ObservableObject { | |
@Published var exp: Int = 0 | |
@Published var health: Int = 100 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment