Swiftpack.co - alessiorubicini/SFSymbolsPickerForSwiftUI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by alessiorubicini.
alessiorubicini/SFSymbolsPickerForSwiftUI 1.0.1
A SwiftUI Picker for picking SF Symbols in your app!
⭐️ 10
🕓 22 weeks ago
iOS
.package(url: "https://github.com/alessiorubicini/SFSymbolsPickerForSwiftUI.git", from: "1.0.1")

SFSymbolsPicker

SFSymbolsPicker is a simple and powerful SwiftUI picker that let you pick Apple's SFSymbols inside your iOS app with an easy binding!

Example

@State private var icon = "l1.rectangle.roundedbottom"

@State private var isPresented = false

var body: some View {
    Form {        
        Button(action: {
            withAnimation {
                isPresented.toggle()
            }
        }, label: {
            HStack {
                Text("Press Here")
                Spacer()
                Image(systemName: icon)
            }
        })
        
        SFSymbolsPicker(isPresented: $isPresented, icon: $icon, category: .games, axis: .vertical, haptic: true)
    }
}

Installation

Required:

  • iOS 14.0 or above
  • Xcode 12.0 or above

In Xcode go to File -> Swift Packages -> Add Package Dependency and paste in the repo's url: https://github.com/alessiorubicini/SFSymbolsPicker. Then choose the main branch (versions support coming soon).

GitHub

link
Stars: 10
Last commit: 8 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.0.1
22 weeks ago

Bug fixes:

  • fixed an issue with category "KeyBoard" name

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