Customizing Buttons in SwiftUI

Advertisements
Photo by James Sutton on Unsplash
Button {
print("Launching!")
} label: {
Text("Launch")
}
Text("Launch")
.onTapGesture {
print("Launching!")
}
struct EmptyStyle: ButtonStyle {
func makeBody(configuration: Configuration) -> some View {
configuration.label
}
}
Pulsing Button
Cancellable Button

Source

Leave a comment

Your email address will not be published. Required fields are marked *