Quantcast
Channel: SwiftUI Archives - SwiftLee
Viewing all articles
Browse latest Browse all 21

How to use @ScaledMetric in SwiftUI for Dynamic Type support

$
0
0

The @ScaledMetric property wrapper in SwiftUI allows you to adopt custom values to dynamic type settings. Your custom values will scale proportionally whenever the user changes the dynamic type setting. While elements like text scale are automatically based on the Dynamic Type setting, other values like padding or image sizes might not. Connecting these to … 

The post How to use @ScaledMetric in SwiftUI for Dynamic Type support appeared first on SwiftLee.


Viewing all articles
Browse latest Browse all 21

Trending Articles