An introduction to handling SwiftUI Buttons! ⬇️
Add the following to Package.swift
:
.package(url: "https://github.com/stateman92/SwiftUIButton", exact: .init(0, 0, 2))
Button {
print("The button is tapped!")
} label: {
Text("Tap me!")
}
.buttonStyle(BaseButtonStyle(icon: .leading(.init(systemName: "circle")),
size: .normal(cornerRadius: 15),
theme: DefaultButtonTheme()))
For details see the Example app.
link |
Stars: 2 |
Last commit: 5 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics