Advertisement
Larme

Untitled

Dec 19th, 2023
819
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.97 KB | None | 0 0
  1.         Divider()
  2.         Text("Fonts:")
  3.         Divider()
  4.         Text("Sub").font(.subheadline)
  5.         Text("Title").font(.title)
  6.         Text("Sub Then Title").font(.subheadline).font(.title)
  7.         Text("Title Then Sub").font(.title).font(.subheadline)
  8.         Divider()
  9.         Text("Borders")
  10.         Divider()
  11.         Text("Red").border(.red)
  12.         Text("Blue").border(.blue)
  13.         Text("Red then Blue").border(.red).border(.blue)
  14.         Text("Blue then Red").border(.blue).border(.red)
  15.         // So the last one replace the whole color, seems logic
  16.         Divider()
  17.         Text("Padding")
  18.         Divider()
  19.         Text("Padding None").border(.red) //To help see the differences
  20.         Text("Padding A4").padding(4).border(.red)
  21.         Text("Padding Leading8").padding(.leading, 8).border(.red)
  22.         Text("Padding A4 Then L8").padding(4).padding(.leading, 8).border(.red)
  23.         Text("Padding L8 Then A4").padding(.leading, 8).padding(4).border(.red)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement