Skip to content

Instantly share code, notes, and snippets.

@Thonyvb
Created March 18, 2022 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thonyvb/0147039825f003ee307143e427f0ab9f to your computer and use it in GitHub Desktop.
Save Thonyvb/0147039825f003ee307143e427f0ab9f to your computer and use it in GitHub Desktop.
SwiftUI Property Wrappers
struct BuyButton: View {
@State private var isDisabled = true
var body: some View {
Button("Hacer la compra", action: {})
.buttonStyle(.borderedProminent) // apple's default for demonstration purposes.
.disabled(isDisabled)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment