FontWeight

A weight to use for fonts.

StructureiOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+Font.Weight in SwiftUI

Declaration

React
type FontWeight =
  | 'black'
  | 'bold'
  | 'heavy'
  | 'light'
  | 'medium'
  | 'regular'
  | 'semibold'
  | 'thin'
  | 'ultraLight';
Swift
@frozen struct Weight

Pass a literal, or build one with SwiftUI.FontWeight from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Used by

See also

More in Text and symbols.