Skip to content

Instantly share code, notes, and snippets.

@tjmaynes
Created September 22, 2021 15:15
Show Gist options
  • Select an option

  • Save tjmaynes/4bd7a204424d0115b5a8b6fc41abc77a to your computer and use it in GitHub Desktop.

Select an option

Save tjmaynes/4bd7a204424d0115b5a8b6fc41abc77a to your computer and use it in GitHub Desktop.
import SwiftUI
struct ButtonView: View {
let message: String
let buttonTitle: String
let onTap: () -> Void
var body: some View {
VStack {
Text(message).padding()
Button(action: { onTap() }) {
Text(buttonTitle)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment