AltIcon - a better way to change icons in your app. This package allows you to change app icons without displaying an alert message.
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
- Add alternative icons to your
.xcassets
file. - Set
Include All App Icon Assets
toYES
in 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()
}
}
}
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.
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.
Distributed under the MIT license. See LICENSE for more information.
Developed with ❤️ by Matt Novoselov