Swiftpack.co - stateman92/SwiftUIButton as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by stateman92.
stateman92/SwiftUIButton 0.0.2
An introduction to handling SwiftUI Buttons! ⬇️
⭐️ 2
🕓 1 year ago
iOS
.package(url: "https://github.com/stateman92/SwiftUIButton.git", from: "0.0.2")

SwiftUIButton

An introduction to handling SwiftUI Buttons! ⬇️

Setup

Add the following to Package.swift:

.package(url: "https://github.com/stateman92/SwiftUIButton", exact: .init(0, 0, 2))

Or add the package in Xcode.

Usage

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.

Example

Example

GitHub

link
Stars: 2
Last commit: 22 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics