Skip to content
My first Coda doc
Share
Explore
iOS

Text

Last edited 1 day ago by Nolan Laake (ChunkerDunkers)

Text("Hello, World")
.font(.title2)
.font(.system(size: 38))
.font(.system(size: 25, design: .rounded))
.fontWeight(.bold)
.multilineTextAlignment(.leading)
.lineLimit(2)
.fixedSize(horizontal: false, vertical: true)
.foregroundColor(Color.white)
.foregroundColor(Color(uiColor: .placeholderText))
.minimumScaleFactor(0.5)
.padding()

System Fonts and Sizing


Table
0
Style
Code
Weight
iOS Size
1
Large Title
.largeTitle
Regular
Open
2
Title
.title
Regular
Open
3
Title 2
.title2
Regular
Open
4
Title 3
.title3
Regular
Open
5
Headline
.headline
Semi-Bold
Open
6
Body
.body
Regular
Open
7
Callout
.callout
Regular
Open
8
Subheadline
.subheadline
Regular
Open
9
Footnote
.footnote
Regular
Open
10
Caption
.caption
Regular
Open
11
Caption 2
.caption2
Regular
Open
There are no rows in this table

Font Weight

swiftui-font-weights.png
Text("Hello, World")
.fontWeight(.semibold)

Font Design


Text("Hello")
.font(.system(.body, design: .rounded))
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.