Created
November 30, 2020 12:14
-
-
Save standinga/8030466b73e39911bbd6bedf3317de86 to your computer and use it in GitHub Desktop.
IOS/OSX Networking updated content view
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 ContentView: View { | |
var body: some View { | |
VStack { | |
Button("Server") { | |
server?.start() | |
} | |
Spacer() | |
Button("Client") { | |
client.start() | |
} | |
Spacer() | |
Button("Send") { | |
server?.send() | |
} | |
}.frame(height: 100) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment