Created
December 21, 2019 13:06
-
-
Save nalexn/46703e7754e07ecd777c748a29664f44 to your computer and use it in GitHub Desktop.
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
struct CustomView: View { | |
@EnvironmentObject var appState: AppState | |
var body: some View { | |
Text("Value: \(appState.value)") | |
} | |
} | |
let view = CustomView() | |
.environmentObject(appState) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment