SFSymbols 0.9.5

SFSymbols 0.9.5

Maintained by Reece Como.



SFSymbols 0.9.5

  • By
  • Reece Como

SFSymbols

Autocompleted, compile-time constants for Apple's built-in SF Symbols.

Codacy Badge Language Version License Platform

SF Symbols

A set of over 1,500 consistent, highly configurable symbols you can use in your app. Apple designed SF Symbols to integrate seamlessly with the San Francisco system font, so the symbols automatically ensure optical vertical alignment with text for all weights and sizes. SF Symbols are available in a wide range of weights and scales to help you create adaptable designs.

Usage

UIKit

// Directly create UIImages for symbols.
let myIcon = UIImage(symbol: .videoBadgeCircle)

// Configure symbols with `UIImage.SymbolConfiguration` properties.
let bigBoldAlarm = UIImage(symbol: .alarm, weight: .bold, scale: .large)

// All 1500+ symbols are supported.
let icons = [
    UIImage(symbol: .star),
    UIImage(symbol: .starFill),
    UIImage(symbol: .wifi),
    UIImage(symbol: .wifiSlash),
    UIImage(symbol: .eyedropper),
    UIImage(symbol: .tuningfork)
]

SwiftUI

// Directly create symbol images.
struct ContentView : View {
    var body: some View {
        HStack {
            Image(symbol: .waveform, symbolScale: .large)
            Text("Hello World")
        }
    }
}

SF Symbols App Screenshot

Installation

Swift Package Manager

SFSymbols is available through Swift Package Manager as SFSymbols.

CocoaPods

SFSymbols is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SFSymbols'

License

SFSymbols is available under the MIT license. See the LICENSE file for more info.