Skip to content

Instantly share code, notes, and snippets.

@ytyubox
Created September 8, 2020 05:33
Show Gist options
  • Save ytyubox/47d653c9bfadb3f99b5562f85f5dfc7e to your computer and use it in GitHub Desktop.
Save ytyubox/47d653c9bfadb3f99b5562f85f5dfc7e to your computer and use it in GitHub Desktop.
Markdium-Inheriting existing Class type to support ObservableObject
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