matt-novoselov/alticon
AltIcon
Installation
To install AltIcon using Swift Package Manager you can follow the tutorial published by Apple using the URL for this repo with the current version:
- In Xcode, select “File” → “Add Packages...”
- Enter
https://github.com/matt-novoselov/AltIcon.git
Usage
- Add alternative icons to your
.xcassetsfile. - Set
Include All App Icon AssetstoYESin your Build Settings. - Import AltIcon to your project:
import SwiftUI
import AltIcon
struct ContentView: View {
var body: some View {
Button("Set Alternative Icon") {
setAppIcon("AppIcon2")
}
Button("Reset Icon To Default") {
resetAppIcon()
}
}
}Issues
Have an issue with the package, or want to suggest a feature/API to help make your development life better? Log an issue in the issues tab! You can also browse older issues and discussion threads there to see solutions that may have worked for common problems.
<br>
[!WARNING] This package uses Apple's private APIs. AltIcon uses obfuscation, but there is a chance that Apple could detect this during the App Store review process. Use at your own risk.
<br>
Credits
Distributed under the MIT license. See LICENSE for more information.
Developed with ❤️ by Matt Novoselov
Package Metadata
Repository: matt-novoselov/alticon
Default branch: main
README: README.md