Custom images from an asset catalog don't automatically resize with text. If an image is not purely decorative, we should ensure it scales appropriately when users adjust their preferred font size. We can easily do it with the ScaledMetric API in SwiftUI: nilcoalescing.com/blog/Adaptin…
#SwiftUI #iOSDev
#SwiftUI #iOSDev
Adapting images and symbols to Dynamic Type sizes in SwiftUI
Make SF Symbols and custom images adapt to different font sizes while maintaining layout balance, keeping key icons clear, and providing more space for higher-priority content when needed.Natalia Panferova (Nil Coalescing)