Lewati ke konten
TakoAPI
Kembali ke skill

symbolpicker

oleh szpakkamil

iOS & macOS Development
1.5kUnduhan dilaporkan oleh clawskills.sh
1Bintang
2Tayangan
0 sukaMasuk untuk menyukai skill ini
—Belum ada penilaian
Penilaian Anda

Ringkasan

Expert guidance on SymbolPicker, a native SwiftUI SF Symbol.

Deskripsi

Apa yang Dilakukan Skill Ini

SymbolPicker is a SwiftUI component for selecting SF Symbols on iOS, iPadOS, macOS, and visionOS. It mimics Apple's native picker interface and supports color binding, filled or outlined icon styles, and configurable dismissal behavior.

It replicates Apple's native SF Symbol picker UI, including search and color selection, without requiring developers to implement the sheet, bindings, and icon grid from scratch.

Kapan Menggunakannya

  • Letting users choose an icon for a custom task category
  • Selecting a symbol and color for a habit tracker entry
  • Picking shortcut icons in a launcher or home screen app
  • Customizing icons for bookmarks or saved notes
  • Building a symbol browser inside a SwiftUI design tool

Contoh Alur Kerja

INPUT

User asks: How do I add a symbol picker with color selection to a SwiftUI button?

AGENT
  1. 1

    Add the SymbolPicker package from GitHub via Swift Package Manager (min version 1.0.0)

  2. 2

    Import SymbolPicker in the SwiftUI file

  3. 3

    Declare @State variables for isPresented, symbolName (String), and color (Color)

  4. 4

    Attach .symbolPicker(isPresented:symbolName:color:) to a Button

  5. 5

    Apply .symbolPickerSymbolsStyle(.filled) and .symbolPickerDismiss(type: .onSymbolSelect) as needed

OUTPUT

A Button that opens a native-style symbol picker sheet with color selection, displaying filled icons and closing automatically after the user selects a symbol

Persyaratan

  • SymbolPicker Swift package added via Swift Package Manager (https://github.com/SzpakKamil/SymbolPicker.git, minimum version 1.0.0)

Instalasi

clawhub install szpakkamil/symbolpicker

Jalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.

Tautan