Skip to content

About

Generate Apple Settings style icons — colored squircle with white SF Symbol. SwiftUI & UIKit.

Topics

Resources

Stars

167 stars

Watchers

2 watching

Forks

Repository files navigation

SettingsIconGenerator

Generate icons matching Apple Settings style — a colored background with a white SF Symbol. Supports iOS, macOS, watchOS and visionOS.

Installation

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

https://github.com/sparrowcode/SettingsIconGenerator

Usage

SwiftUI

// Squircle on iOS and macOS, circle on watchOS and visionOS
SettingsIcon(systemName: "bell.fill", backgroundColor: .blue)
// Force a shape
SettingsIcon(systemName: "bell.fill", backgroundColor: .blue, shape: .circle)
// Your own image (logo, app icon) on the same plate
SettingsIcon(image: Image("Logo"))

UIKit

let image = UIImage.generateSettingsIcon("bell.fill", backgroundColor: .systemBlue)
let circle = UIImage.generateSettingsIcon("bell.fill", backgroundColor: .systemBlue, shape: .circle)
// Your own image on the same plate and canvas, so it lines up with symbol icons in a list
let logo = UIImage.generateSettingsIcon(image: UIImage(named: "Logo")!)

A custom image fills the plate (like scaledToFill) and is clipped to its shape.

About

Generate Apple Settings style icons — colored squircle with white SF Symbol. SwiftUI & UIKit.

Topics

Resources

Stars

167 stars

Watchers

2 watching

Forks

Releases

Contributors

Languages