Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. let rect = CGRect(x: 157, y: 398, width: 100, height: 100) // create rect
  2. let view = UIView(frame: rect) // create view for rect
  3. view.backgroundColor = .red // color rect
  4. self.view.addSubview(view) // display rect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement