Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rect = CGRect(x: 157, y: 398, width: 100, height: 100) // create rect
- let view = UIView(frame: rect) // create view for rect
- view.backgroundColor = .red // color rect
- self.view.addSubview(view) // display rect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement