How to bold text in SwiftUI TextField?

A general approach for using standard font size options and weights that work with SwiftUI TextField. For example:

TextField("Name", text: $name)
  .font(Font.headline.weight(.light))

Available standard size options (smallest to largest):

.caption
.footnote
.subheadline
.callout
.body
.headline
.title3
.title2
.title
.largeTitle

Available standard font weights (lightest to heaviest):

.ultralight
.thin
.light
.regular
.medium
.semibold
.bold
.heavy
.black

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)