AppIconView

2.0.4

A SwiftUI view for presenting and changing iOS app icons effortlessly
kevinhermawan/AppIconView

What's New

v2.0.4

2023-10-11T10:39:49Z

AppIconView

A SwiftUI view for presenting and changing iOS app icons effortlessly.

Overview

AppIconView is a SwiftUI view tailored to showcase the available app icons in a list. It integrates seamlessly with the AppIcon utility, providing an intuitive interface for users to select and change app icons on the fly.

Installation

You can add AppIconView and AppIcon as dependencies to your project using Swift Package Manager by adding them to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/kevinhermawan/AppIcon.git", .upToNextMajor(from: "2.0.0")),
    .package(url: "https://github.com/kevinhermawan/AppIconView.git", .upToNextMajor(from: "2.0.0"))
]

Alternatively, in Xcode:

  1. Open your project in Xcode.
  2. Click on File -> Swift Packages -> Add Package Dependency...
  3. Enter the repository URL: https://github.com/kevinhermawan/AppIconView.git
  4. Choose the version you want to add. You probably want to add the latest version.
  5. Ensure both AppIconView and AppIcon are selected in the list of libraries or modules to add.
  6. Click Add Package.

Usage

import AppIcon
import AppIconView

struct ContentView: View {
    @State private var currentAppIcon: Icon? = AppIcon.current

    var body: some View {
        NavigationView {
            AppIconView(current: $currentAppIcon, defined: AppIcon.defined)
                .navigationTitle("App Icon")
        }
    }
}

For a detailed guide on setting up alternate app icons and the necessary Info.plist configurations, refer to the official Apple documentation on "Configuring Your App to Use Alternate App Icons".

License

MIT License

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

Last updated: Thu Mar 21 2024 07:19:19 GMT-0900 (Hawaii-Aleutian Daylight Time)