Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Divider()
- Text("Fonts:")
- Divider()
- Text("Sub").font(.subheadline)
- Text("Title").font(.title)
- Text("Sub Then Title").font(.subheadline).font(.title)
- Text("Title Then Sub").font(.title).font(.subheadline)
- Divider()
- Text("Borders")
- Divider()
- Text("Red").border(.red)
- Text("Blue").border(.blue)
- Text("Red then Blue").border(.red).border(.blue)
- Text("Blue then Red").border(.blue).border(.red)
- // So the last one replace the whole color, seems logic
- Divider()
- Text("Padding")
- Divider()
- Text("Padding None").border(.red) //To help see the differences
- Text("Padding A4").padding(4).border(.red)
- Text("Padding Leading8").padding(.leading, 8).border(.red)
- Text("Padding A4 Then L8").padding(4).padding(.leading, 8).border(.red)
- Text("Padding L8 Then A4").padding(.leading, 8).padding(4).border(.red)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement