
SFSymbolsPicker is a simple and powerful SwiftUI picker that let you pick Apple's SF Symbols inside your iOS and macOS apps with an easy binding!
- Easy Integration: Simple SwiftUI binding for seamless symbol selection
- Cross-Platform: Full support for both iOS and macOS applications
- Dynamic Symbol Access: Always up-to-date with the latest SF Symbols from the system
- Customizable Interface:
- Custom title and search bar label
- Optional custom close button
- Configurable auto-dismiss behavior
- Intuitive Search: Powerful search functionality to quickly find the perfect symbol
- System Integration: Native toolbar icon support for easy dismissal
- Modern Design: Clean and consistent with Apple's design language
- Performance Optimized: Efficient symbol loading and rendering
Here's a short usage example. You can find the full code in UsageExample.swift.
@State private var icon = "star.fill"
@State private var isPresented = false
var body: some View {
NavigationView {
VStack {
Button("Select a symbol") {
isPresented.toggle()
}
Image(systemName: icon).font(.title3)
.sheet(isPresented: $isPresented, content: {
SymbolsPicker(selection: $icon, title: "Pick a symbol", autoDismiss: true)
}).padding()
}
.navigationTitle("SF Symbols Picker")
}
}
With custom button:
...
.sheet(isPresented: $isPresented, content: {
SymbolsPicker(selection: $icon, title: "Pick a symbol", autoDismiss: true) {
// Your custom view...
// For example:
Text("Close!")
}
}).padding()
...
Required:
- iOS 17.0 or above
- macOS 14.0 or above
- Xcode 15.0 or above
In Xcode go to File -> Add Package Dependencies...
and paste in the repo's url: https://github.com/alessiorubicini/SFSymbolsPicker
.
Then choose the main branch or the version you desire.
Copyright 2025 (©) Alessio Rubicini.
The license for this repository is MIT License.
Please see the LICENSE file for full reference