Strings
Last updated
Was this helpful?
Last updated
Was this helpful?
Align to left alignment: .leading
Align to right alignment: .trailing
VStack{Text("First Label")Spacer(minLength:50)Text("Second Label")}
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
Excel 'deki bir alt satira gecirme gibi Alt+enter
.append adds to the end of the array
.insert adds to the start of the array