Swiftpack.co - ivanvorobei/SFSymbols as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ivanvorobei.
ivanvorobei/SFSymbols 1.0.0
Easy usage SFSymbols. If symbol not available, compiler will show warning.
⭐️ 2
🕓 4 days ago
iOS
.package(url: "https://github.com/ivanvorobei/SFSymbols.git", from: "1.0.0")

SFSymbols

Wrapper of SFSymbols. You choose the icon and what style to draw it in. You can specify the font with which to draw the icon. If the symbol is not available for your version of iOS/macOS/tvOS, the compiler will show a warning. Processed all symbols by script.

Installation

Ready for use on iOS 13+.

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

Once you have your Swift package set up, adding as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/ivanvorobei/SFSymbols", .upToNextMajor(from: "1.0.1"))
]

Manually

If you prefer not to use any of dependency managers, you can integrate manually. Put Sources/SFSymbols folder in your Xcode project. Make sure to enable Copy items if needed and Create groups.

Usage

To create image:

let image = UIImage(.trash.circle)

If need with specific font, use this:

let image = UIImage(.plus, font: UIFont.preferredFont(forTextStyle: .body))

Russian Community

Я веду телеграм-канал, там публикую новости и туториалы.
С проблемой помогут в чате.

Видео-туториалы выклыдываю на YouTube:

Tutorials on YouTube

GitHub

link
Stars: 18
Last commit: 2 hours ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Added sources.
2 hours ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics