Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.59 KB | None | 0 0
  1. struct ContentView : View {
  2.     var body: some View {
  3.        
  4.         ZStack {
  5.            
  6.             Button("VIEW 1") {
  7.                
  8.             }.padding(100)
  9.              .background(Color.orange)
  10.            
  11.             Button("VIEW 2") {
  12.                
  13.             }.padding(100)
  14.                 .background(Color.blue)
  15.                 .offset(y: 50)
  16.            
  17.             Button("VIEW 3") {
  18.                
  19.             }.padding(100)
  20.                 .background(Color.yellow)
  21.                 .offset(y: 100)
  22.            
  23.            
  24.         }
  25.    
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement