Learn how iOS 18 will automatically generate icons for dark mode

2024-07-15 22:18:48

As we know, or iOS 18 will bring a new feature that automatically adjusts app icons to the dark modestandardizing the visual experience of the system without developers having to do it manually.

The function, which is already included in the current beta version of the system, allows the icons of all applications, both from Apple and other developers, to change appearance automatically when dark mode is activated on the device.

Related Posts

  • iOS 18, iPadOS 18, macOS 15, watchOS 11, and tvOS 18 enter public beta
  • Revised betas 3 of iOS 18, iPadOS 18, and macOS 15 released

Brazilian developer Guilherme Rambo explained in a post that the adjustment of icons in iOS 18’s dark mode does not use artificial intelligence, but rather mathematical calculations made by the IconServices system, which decides how to change the color of the icons.

In case you’re curious, I took a look at the icon segmentation implementation in iOS 18 to see how they’re generating dark mode icons. There’s no machine learning or AI involved, it’s all just clever math. IconServices extracts the foreground of the icon and determines whether it should be tinted with the background color or left as is, with configurable thresholds for when the results aren’t acceptable, at which point it just darkens the icon. It appears to be using ARM Neon instructions for speed.

iOS 18 beta users have noticed two major icon tweaks: some, like YouTube, have a black background and change the main color, while more complex icons, like Instagram, just get a darker shade.

As we know, the expectation is that the new systems will be launched by September/October of this year, following all the tests.

via 9to5Mac

1721083125
#Learn #iOS #automatically #generate #icons #dark #mode

Share:

Facebook
Twitter
Pinterest
LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Articles:

Table of Contents