Search code examples
iosswiftswiftuiios13

What's the minimumFontScale equivalent for SwiftUI?


I'm making an app in SwiftUI and the text looks fine on the iPhone but is way too small on the iPad so I was wondering what the minimumFontScale equivalent was in SwiftUI so I could have the text properly scale for all screen sizes.


Solution

  • According to Apple's official documentation minimumScaleFactor() is what you need.