I decided to dive in and investigate archives for single-size app icons compared to individual size configured app icons. App size is critical when maintaining app clips with a limited 10MB size. It’s already great to step away from app icon generators, but it’s even better when you realize you’ll get an easy way to reduce your app’s total size. ![]() When Apple announced the single-size app icon feature, I was immediately interested in investigating the effect on app size. How does a single app icon affect my app’s total size? You still need to define all sizes individually for macOS. You could argue extensions like App Clips are supported since they reuse the App Icon of your main project. Which platforms support single app icon sizes? An App Icon generator might still be helpful for these cases. In other words, if you want to configure specific app icons for certain sizes, you’ll have to provide an app icon for all individual sizes. There’s no option to override individual app icon sizes while falling back on the single app icon for other sizes. Your project will now automatically use this single 1024×1024 app icon to resize individual icons to their target size.Ĭan I override individual app icon sizes? Using a single 1024×1024 app icon for all individual sizes. The overview for your app icon will change into a single 1024×1024 app icon: Select single size from within the Attributes Inspector to no longer depend on App Icon Generators. You can configure your Assets catalog in Xcode to use a single size for all app icons from within the Attributes Inspector panel: It's available only until May 21st, so click to get it now! Configuring a single app icon for all sizes I’ve not verified if the issue still exists but it may be worth avoiding the single-size app icon if you’re still supporting iOS 11 or older.FREE iOS Architect Crash Course for a limited time! If you’re a mid/senior iOS developer looking to improve your skills and salary level, join this 100% free online crash course. The release notes mention a known issue with App Store validation if you target earlier than iOS 12 or watchOS 4:Īpps using a single-size app icon can fail App Store validation if the deployment target is older than iOS 12 or watchOS 4. It’s not clear to me what these new sizes are for? You don’t have to add images for them but if you don’t you’ll get the resized version of the 1024x1024 image. If you upgrade an Xcode 13 or earlier project to the Xcode 14 “All Sizes” mode you’ll notice you have a few extra slots for new sizes added in Xcode 14: If you choose the “Single Size” mode the asset catalog deletes all icon sizes except the 1024x1024 image. ![]() You can choose to switch to the single size app icon mode or upgrade to the full Xcode 14 “All Sizes” mode. When you open a project in Xcode 14, that you created with Xcode 13 or earlier, the asset catalog shows the app icon in an “All Sizes (Xcode 13)” mode: You don’t need to fill all the slots, just add the ones where you want to override the automatically resized image. That reverts to showing the full set of app icon sizes: When you need to be more accurate you can switch to “All Sizes”: It’s also great for placeholder icons during initial app development. The single size app icon mode is great for icons that don’t need pixel level adjustments when resized. The single size mode also exists for watchOS but sadly not for macOS: You can still override individual sizes with the All Sizes option. Choose the Single Size option in the app icon’s Attributes inspector in the asset catalog. Simplify an app icon with a single 1024x1024 image that is automatically resized for its target. Here’s the announcement in the Xcode 14 release notes: Hard to believe that wasn’t possible until now. You can also double-click an image slot to directly open the file panel to choose the image file. Instead of the full set of icon sizes there’s a single slot for a 1024×1024 point image that the system resizes as needed. Starting with Xcode 14, when you create a new iOS project, the app icon in the asset catalog defaults to the new “Single Size”. ![]() Xcode 14 also adds a few extra app icon sizes. It feels like it’s been a long time coming but Xcode 14 can automatically create the full set of app icon sizes for you from a single 1024x1024 image.
0 Comments
Leave a Reply. |