Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 695 Bytes

File metadata and controls

27 lines (18 loc) · 695 Bytes

SettingsIconGenerator

Generate icons matching Apple Settings style — a colored background with a white SF Symbol. Pick a squircle (iOS) or circle (visionOS) shape.

Installation

In Xcode: File → Add Package Dependencies → paste URL:

https://github.com/sparrowcode/SettingsIconGenerator

Usage

SwiftUI

SettingsIcon(systemName: "bell.fill", backgroundColor: .blue)
SettingsIcon(systemName: "bell.fill", backgroundColor: .blue, shape: .circle)

UIKit

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