# 使用 Homebrew 安装 swiftdraw

查看 swiftdraw 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:swiftdraw
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install swiftdraw
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:swiftdraw
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/swiftdraw>
- **版本:** 0.29.0
- **来源摘要:** Convert SVG into PDF, PNG, JPEG or SF Symbol
- **主页:** <https://github.com/swhitty/SwiftDraw>
- **仓库:** <https://github.com/swhitty/SwiftDraw>
- **许可证:** Zlib
- **源码归档:** <https://github.com/swhitty/SwiftDraw/archive/refs/tags/0.29.0.tar.gz>
- **最后更新:** 2026-07-19T12:32:23Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- swiftdraw (cli)
- swiftdraw (别名)

## macOS 提供的库

- libxml2

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.29.0
- 管理器更新时间: 2026-07-19
- 本地数据: OK
- 上游仓库: https://github.com/swhitty/SwiftDraw
- 检测到的最新版本: 0.29.0 (当前)
## 项目历史与用法

SwiftDraw is a Swift library and command-line tool for parsing SVG files and converting them to PNG, JPEG, PDF, SF Symbols, or generated Swift source.

### 项目历史

The public repository was created in 2017. Its README presents the project first as a Swift SVG parsing and drawing library, then documents the bundled `swiftdraw` command-line converter.

### 采用历史

The README documents installation of the CLI through Homebrew, source builds through the Swift package, and downloadable release artifacts. Homebrew lists bottles for macOS and Linux, which makes the converter available in common package-manager workflows.

### 使用方式

Developers use SwiftDraw as a library from SwiftUI, UIKit, or AppKit, or run `swiftdraw` on SVG files with output formats such as png, pdf, jpeg, swift, and sfsymbol. The CLI supports size, scale, insets, precision, and SF Symbol variant options.

### 为什么软件包爱好者会关心

SwiftDraw is notable for packaging asset conversion as a small Swift-native CLI. It lets package-manager users install a repeatable SVG conversion tool with Homebrew while also offering the same SVG logic as a Swift package library.

### 时间线

- 2017: Public GitHub repository created.
- Current docs: CLI converts SVGs to PNG, JPEG, PDF, SF Symbol, and Swift source output.
- Current docs: Homebrew installation and upgrade commands documented in the README.

### Related projects

- The README positions SwiftDraw alongside SwiftUI, UIKit, AppKit, SF Symbols, SVG, Homebrew, and Swift Package Manager workflows.

### 来源

- <https://api.github.com/repos/swhitty/SwiftDraw>
- <https://formulae.brew.sh/api/formula/swiftdraw.json>
- <https://github.com/swhitty/SwiftDraw#readme>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swiftdraw
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [svg2pdf](https://pkg.so/zh-hans/brew/svg2pdf/) - Shares pkgdb curated category or tags: cli, graphics-conversion, media, pdf, svg.
- [cairo](https://pkg.so/zh-hans/brew/cairo/) - Shares pkgdb curated category or tags: cli, media, pdf, svg.
- [gd](https://pkg.so/zh-hans/brew/gd/) - Shares pkgdb curated category or tags: cli, jpeg, media, png.
- [potrace](https://pkg.so/zh-hans/brew/potrace/) - Shares pkgdb curated category or tags: cli, media, pdf, svg.
- [img2pdf](https://pkg.so/zh-hans/brew/img2pdf/) - Shares pkgdb curated category or tags: cli, jpeg, media, pdf.
- [pdf2svg](https://pkg.so/zh-hans/brew/pdf2svg/) - Shares pkgdb curated category or tags: cli, media, pdf, svg.
- [jp2a](https://pkg.so/zh-hans/brew/jp2a/) - Shares pkgdb curated category or tags: cli, jpeg, media, png.
- [plutobook](https://pkg.so/zh-hans/brew/plutobook/) - Shares pkgdb curated category or tags: cli, media, pdf, png.
- [caesiumclt](https://pkg.so/zh-hans/brew/caesiumclt/) - Local package facts share a topical domain. Shared terms: cli, jpeg, media, or, png.

## Combined YAML source

View the package source record on GitHub. [combined/swiftdraw.yml](https://github.com/mxcl/pkgdb/blob/main/combined/swiftdraw.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
