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

Fix alternate app icon picker for iOS 18 #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aokj4ck
Copy link
Collaborator

@aokj4ck aokj4ck commented Sep 29, 2024

Description

  • Alternate app icons continued to work in iOS 18…
  • but the icons could not be displayed in-app
  • Fix alternate app icon selection by adding regular image asset catalogs for the alternates and displaying those images

Resources

If UIImage(named:) was called with the name of an app icon, it would previously return an undefined image of the icon set, without any masking or shadowing applied. On iOS 18, it now returns nil. To display an icon within the app itself, add the desired image to the asset catalog as an image set. (130491812) (FB14052579)
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-18-release-notes#UIKit

Screenshots

Before, iOS 18 After, iOS 18
ios18-before ios18-after

Enhancements

  • iOS 18 app icon tinting and dark-mode theming will need to be addressed separately

> If UIImage(named:) was called with the name of an app icon, it would previously return an undefined image of the icon set, without any masking or shadowing applied. On iOS 18, it now returns nil. To display an icon within the app itself, add the desired image to the asset catalog as an image set. (130491812) (FB14052579)
-- https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-18-release-notes#UIKit

- Add regular image asset catalogs for alternate app icons for display inside the app
- Add AppIcon.image: UIImage property for display inside app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant