# SymbolPicker **Repository Path**: sunrix/SymbolPicker ## Basic Information - **Project Name**: SymbolPicker - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-10 - **Last Updated**: 2023-11-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SymbolPicker A simple and cross-platform SFSymbol picker for SwiftUI ![](https://img.shields.io/badge/License-MIT-green) ![](https://img.shields.io/badge/Platform-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS-blue) ## Features SymbolPicker provides a simple and cross-platform interface for picking a SFSymbol. SymbolPicker is implemented with SwiftUI and supports iOS, macOS, tvOS, watchOS and visionOS platforms. ![](/Screenshots/demo.png) ### visionOS Please use [xrOS branch](https://github.com/xnth97/SymbolPicker/tree/xrOS) for visionOS. Main branch should also work fine out-of-box thanks to SwiftUI, but I'll be experimenting visionOS-only features on xrOS branch. ![](/Screenshots/xros.png) ## Usage ### Requirements * iOS 15.0+ / macOS 12.0+ / tvOS 15.0+ / watchOS 8.0+ / visionOS 1.0+ * Xcode 13.0+ * Swift 5.0+ ### Installation SymbolPicker is available as a Swift Package. Add this repo to your project through Xcode GUI or `Package.swift`. ```swift dependencies: [ .package(url: "https://github.com/xnth97/SymbolPicker.git", .upToNextMajor(from: "1.4.0")) ] ``` ### Example It is suggested to use SymbolPicker within a `sheet`. ```swift import SwiftUI import SymbolPicker struct ContentView: View { @State private var iconPickerPresented = false @State private var icon = "pencil" var body: some View { Button { iconPickerPresented = true } label: { HStack { Image(systemName: icon) Text(icon) } } .sheet(isPresented: $iconPickerPresented) { SymbolPicker(symbol: $icon) } } } ``` ## TODO - [ ] Categories support - [x] Multiplatform support - [x] Platform availability support - [ ] Codegen from latest SF Symbols - [x] Nullable symbol ## License SymbolPicker is available under the MIT license. See the [LICENSE](LICENSE) file for more info.