×

Text

iOS 14 +

Notes

Display text. You can display text verbatim, or specify a timestamp to display a text relative to.

Syntax

text(kind: <#Enumeration (TextKind)#>, verbatim: <#String (Allows Variables)#>, date: <#Date#>, dateStyle: <#Object (TextDateStyle)#>, font: <#Object (Font)#>, color: <#Object (View)#>, bold: <#Boolean#>, italic: <#Boolean#>, strikethrough: <#Boolean#>, strikethroughColor: <#Object (View)#>, underline: <#Boolean#>, underlineColor: <#Object (View)#>, kerning: <#Double#>, tracking: <#Double#>, baselineOffset: <#Double#>)

Example

text(kind: verbatim, verbatim: ""Awesome Sauce"", date: February 26th 2022, dateStyle: TextDateStyle(identifier: "Style", displayString: "Style"), font: Font(identifier: "SF Pro", displayString: "SF Pro"), color: View(identifier: "View1", displayString: "View One"), bold: true, italic: false, strikethrough: false, strikethroughColor: , underline: false, underlineColor: , kerning: 0.0, tracking: 0.0, baselineOffset: 0.0)