Does this look familiar? You are trying to create a consistent layout for multiple symbols that have noticeably different widths or heights.
Here's how you can solve this problem in SwiftUI using the .frame modifier, font styles, and the @ScaledMetric property wrapper! 🧵
Before + After
Here's how you can solve this problem in SwiftUI using the .frame modifier, font styles, and the @ScaledMetric property wrapper! 🧵
Before + After
1 / 2
Comments
Experiment with height value so that the taller icon has the smallest possible value without clipping the icon. Utilize SwiftUI Previews for this.