Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

sfsymbol-generator

bởi svkozak

iOS & macOS Development
1.8kLượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Generate an Xcode SF Symbol asset catalog .symbolset.

Mô tả

Kỹ năng này làm gì

Generates an Xcode SF Symbol asset catalog .symbolset from an SVG file. Creates the symbolset folder, Contents.json, and injects SVG paths into the SF Symbols template across Ultralight, Regular, and Black weight variants.

Automates the manual process of structuring a .symbolset, writing Contents.json, and injecting paths into SF Symbols weight variants, which otherwise requires the SF Symbols Mac app and manual template editing.

Khi nào nên dùng

  • Adding a company logo as a custom SF Symbol in a SwiftUI app
  • Converting a brand icon SVG for use in an iOS tab bar
  • Generating a symbolset for an Xcode asset catalog during app development
  • Creating weight-variant icons from a single SVG source
  • Automating symbolset creation as part of an iOS build workflow

Quy trình ví dụ

ĐẦU VÀO

User asks: convert /Users/admin/Desktop/pi-logo.svg to a custom SF Symbol named pi.logo

AGENT
  1. 1

    Validates the SVG path and confirms a viewBox is present

  2. 2

    Computes path bounds and centers them within SF Symbols template margins

  3. 3

    Injects paths into Ultralight, Regular, and Black weight variants of the template

  4. 4

    Creates pi.logo.symbolset folder inside Assets.xcassets/Symbols

  5. 5

    Writes the matching Contents.json for the symbolset

ĐẦU RA

pi.logo.symbolset directory ready to add to an Xcode project

Cài đặt

clawhub install svkozak/sfsymbol-generator

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết