Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for system wide icons #7

Open
JoeStanziano opened this issue Jun 17, 2021 · 1 comment
Open

Support for system wide icons #7

JoeStanziano opened this issue Jun 17, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@JoeStanziano
Copy link

This plugin is currently not following Apple's Alternate App Icon guidelines.

Add support for changing the app icon system wide.

4.6 Alternate App Icons
Apps may display customized icons, for example, to reflect a sports team preference, provided that each change is initiated by the user and the app includes settings to revert to the original icon. All icon variants must relate to the content of the app and changes should be consistent across all system assets, so that the icons displayed in Settings, Notifications, etc. match the new springboard icon. This feature may not be used for dynamic, automatic, or serial changes, such as to reflect up-to-date weather information, calendar notifications, etc.

@johnborges johnborges self-assigned this Jun 19, 2021
@johnborges johnborges added the documentation Improvements or additions to documentation label Jun 19, 2021
@johnborges
Copy link
Collaborator

@JoeStanziano I'll fix the readme instructions since it isn't very clear on this topic.

The plugin will change the icons in those other areas you mentioned (settings, notifications, spotlight), as long as you provide the appropriate resolutions for those additional icons.

Something to try as an example:

  1. Create a couple icons: icon, icon@2x, icon@3x.
  2. Only specify one icon reference in Info.plist for all resolutions
<key>CFBundleIcons</key>
<dict>
    <key>CFBundleAlternateIcons</key>
    <dict>
        <!-- The name you use in code -->
        <key>my-app-icon</key>
        <dict>
            <key>UIPrerenderedIcon</key>
            <true/>
            <key>CFBundleIconFiles</key>
            <array>
                <!-- the actual filename -->
                <string>icon</string>
            </array>
        </dict>
    </dict>
</dict>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants