Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sparrowcode/settingsicongenerator
Generator of settings icon by SF Symbols. Customisable background color and ready-use in table cell.
https://github.com/sparrowcode/settingsicongenerator
apple icon native settings sfsymbol sfsymbols swift table tableviewcell uikit xcode
Last synced: about 1 month ago
JSON representation
Generator of settings icon by SF Symbols. Customisable background color and ready-use in table cell.
- Host: GitHub
- URL: https://github.com/sparrowcode/settingsicongenerator
- Owner: sparrowcode
- License: mit
- Created: 2022-02-09T06:06:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T12:55:53.000Z (about 1 year ago)
- Last Synced: 2024-10-31T16:13:17.801Z (about 2 months ago)
- Topics: apple, icon, native, settings, sfsymbol, sfsymbols, swift, table, tableviewcell, uikit, xcode
- Language: Swift
- Homepage: https://sparrowcode.io/frameworks
- Size: 32.2 KB
- Stars: 159
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# SettingsIconGenerator
Generate settings icons by Apple's SF Symbols.
### iOS Dev Community
## Navigate
- [Installation](#installation)
- [Swift Package Manager](#swift-package-manager)
- [CocoaPods](#cocoapods)
- [Manually](#manually)
- [Usage](#usage)
- [UIKit](#uikit)
- [SwiftUI](#swiftui)
- [AppKit](#appkit)## Installation
Ready for use on iOS 13+.
### Swift Package Manager
In Xcode go to Project -> Your Project Name -> `Package Dependencies` -> Tap *Plus*. Insert url:
```
https://github.com/sparrowcode/SettingsIconGenerator
```or adding it to the `dependencies` of your `Package.swift`:
```swift
dependencies: [
.package(url: "https://github.com/sparrowcode/SettingsIconGenerator", .upToNextMajor(from: "1.0.0"))
]
```
### CocoaPods:This is an outdated way of doing things. I advise you to use [SPM](#swift-package-manager). However, I will continue to support Cocoapods for some time.
Cocoapods Instalation
[CocoaPods](https://cocoapods.org) is a dependency manager. For usage and installation instructions, visit their website. To integrate using CocoaPods, specify it in your `Podfile`:
```ruby
pod 'SettingsIconGenerator'
```### Manually
If you prefer not to use any of dependency managers, you can integrate manually. Put `Sources/SettingsIconGenerator` folder in your Xcode project. Make sure to enable `Copy items if needed` and `Create groups`.
## Usage
### UIKit
```swift
let image = UIImage.generateSettingsIcon("bell.fill", backgroundColor: .systemBlue)
```### SwiftUI
```swift
SettingsIcon("bell.fill", backgroundColor: .systemBlue)
```or if need generate image:
```swift
Image.generateSettingsIcon("bell.fill", backgroundColor: .systemBlue)
```## Apps Using
If you use a `SettingsIconGenerator`, add your application via Pull Request.