Method
SwiftUI FontWeight
- SwiftUI Text의 Modifiers 중 fontWeight에 적용할 수 있는 값을 확인해 보자
fontWeight(_:)
func fontWeight(_ weight: Font.Weight?) -> Text
- Sets the font weight of the text
- Text Font Weight값을 지정하는 함수
- 적용할 수 있는 값
- static let black: Font.Weight- 900
 
- static let bold: Font.Weight- 700
 
- static let light: Font.Weight- 300
 
- static let medium: Font.Weight- 500
 
- static let regular: Font.Weight
- static let semibold: Font.Weight- 600
 
- static let thin: Font.Weight- 100
 
- static let ultraLight: Font.Weight- 200