A beautiful and intuitive SwiftUI component for picking SF Symbols in your iOS and macOS apps.
- 🎨 Beautiful grid-based symbol picker interface
- 📂 Categorized symbol browsing
- 📱 Support for iOS and macOS
- 🚀 Easy integration with SwiftUI
- 🎯 Built with SwiftUI and native system components
- iOS 17.0+
- macOS 14.0+
- Swift 6.1+
Add the package to your project using Swift Package Manager:
dependencies: [
.package(url: "https://github.com/wangqiyangx/SFSymbolPicker.git", from: "1.0.2")
]import SwiftUI
import SFSymbolPicker
struct ContentView: View {
@State private var selectedSymbol = "book"
var body: some View {
Form {
SFSymbolPicker("Event icon", selection: $selectedSymbol)
}
}
}The picker can be customized through various parameters:
SFSymbolPicker(
"Custom Title", // The title displayed above the picker
selection: $selectedSymbol // Binding to the selected symbol
)This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Apple for creating SF Symbols 6
- The SwiftUI team for making this possible
