Strings
Overview
Alignment
Align to left alignment: .leading
Align to right alignment: .trailing
Spacer()
VStack{Text("First Label")Spacer(minLength:50)Text("Second Label")}
String()
Changes string and decimal to integer
let a = "I am " // print: "I am"
let b = 44 // print: 44
let c = " years old." // print: " years old."
let d = a + String(b) + c // print: "I am 44 years old."
let e = "Hello, I am \(b) years old" // print: "Hello, I am 44 years old."
let f = "Hello, I was \(b - 1) years old yesterday." // print: "Hello, I was 43 years old yesterday."
\()
Puts variables or constants into the strings
\n
Excel 'deki bir alt satira gecirme gibi Alt+enter
UITextChecker()
NSRange
.append vs .insert
.append adds to the end of the array
.insert adds to the start of the array
Sources
Videos
Articles / Documents
Last updated
Was this helpful?