SPSettingsIcons

1.0.1

Generator of settings icon by SF Symbols. Customisable background color and ready-use in table cell.
sparrowcode/SPSettingsIcons

What's New

Clean code and fixed font styles.

2022-02-16T07:15:56Z

SPSettingsIcons

Generate settings icons by Apple's SF Symbols.

For safe using SFSymbols see SPSafeSymbols library.

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/sparrowcode/SPSettingsIcons", .upToNextMajor(from: "1.0.0"))
]

CocoaPods:

CocoaPods is a dependency manager. For usage and installation instructions, visit their website. To integrate using CocoaPods, specify it in your Podfile:

pod 'SPSettingsIcons'

Manually

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

Usage

UIKit

let image = UIImage.generateSettingsIcon("bell.fill", backgroundColor: .systemBlue)

SwiftUI

SettingsIcon("bell.fill", backgroundColor: .systemBlue)

or if need generate image:

Image.generateSettingsIcon("bell.fill", backgroundColor: .systemBlue)

AppKit

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Sep 29 2022 13:58:10 GMT-0500 (GMT-05:00)