Skip to content

Instantly share code, notes, and snippets.

@standinga
Created November 30, 2020 12:14
Show Gist options
  • Save standinga/8030466b73e39911bbd6bedf3317de86 to your computer and use it in GitHub Desktop.
Save standinga/8030466b73e39911bbd6bedf3317de86 to your computer and use it in GitHub Desktop.
IOS/OSX Networking updated content view
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