Re:Xcode 14 unintentionally increases app size
by interpol_p on Friday November 11, 2022 @01:00AM
(#33557758)
iOS has not required launch images for every size for some time now (since iOS 8 in 2014). It requires instead a piece of UI called a launch storyboard [1], which scales using the standard UI layout system to the different sizes
However custom images can still be set for every possible size, if you really want
[1] https://developer.apple.com/documentation/xcode/specifying-y...
Re:Xcode 14 unintentionally increases app size
by Lukas_Skywalker on Friday November 11, 2022 @04:28AM
(#33558692)
Android has an interesting solution to this called 9-patch-files [1]. They basically add a 1px-margin around the image. By coloring the margin in different colors, you tell the OS what areas to stretch and what should be kept as-is based on the screen size.
I'm flatly amazed that sort of thing isn't some kind of bitmap/vector hybrid format. Like a high resolution central logo and then rules for defining the background, like "blue fading to white at the edges".