PixelKit is a SwiftUI package that provides custom, reusable UI components for enhancing your app's user interface.
- Custom button styles (e.g., SpringyButtonStyle)
- Indicators (e.g., BlinkingEllipsis)
- Swift 6.0+
- macOS 15.0+
- Optional: swiftformat
Add the following to your Package.swift
file:
dependencies: [
.package(url: "https://github.com/kevherro/PixelKit.git", from: "0.1.0")
]
Here's a quick example of how to use the SpringyButtonStyle:
import SwiftUI
import PixelKit
struct ContentView: View {
var body: some View {
Button("Press Me!") {
print("Button pressed!")
}
.buttonStyle(
PixelKit.Styles.SpringyButtonStyle(
width: 200,
height: 50,
color: .blue
)
)
}
}
Kevin Herro - herro [at] sent [dot] com