跳到正文
TakoAPI
返回技能列表

sfsymbol-generator

由 svkozak 提供

iOS & macOS Development
1.8k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generate an Xcode SF Symbol asset catalog .symbolset.

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  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

输出

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

安装

clawhub install svkozak/sfsymbol-generator

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接