Personal collection of handy Swift and SwiftUI utilities, extensions, and custom views.
"It's a living beverage."
– Merlin Mann (I think, anyway.)
This package contains some custom SwiftUI views I've found useful.
Many are small additions to the standard library, such as this Button
that takes a systemImage parameter, rendering an Image
as it's label:
// System initializer for LocalizedString label
Button("Favorite") {
someAction()
}
// Default method of using an Image/SF Symbol label
Button {
someAction()
} label: {
Image(systemName: "star.fill")
}
// ⭐️ Custom initializer for using Image/SF Symbol
Button(systemImage: "star.fill") {
someAction()
}
link |
Stars: 0 |
Last commit: 1 week ago |
Bump to target 2022 OS releases (iOS 16, watchOS 9, macOS Ventura).
Adds some SwiftUI views!
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics