With SwiftUI specifying font size is not like we used to do in the past – by setting size value. Instead it’s better to use dynamic type sizes. This guarantees correct font size when user changes font size and accessibility settings.
https://developer.apple.com/design/human-interface-guidelines/typography#Specifications
Use .font modifier with values from table above. Example:
Text("Hello!")
.font(.headline)
Leave a Reply