Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func viewDidLoad() {
- super.viewDidLoad()
- // Add profileImage to view and constraint it to center of the screen
- view.addSubview(profileImage)
- profileImage.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
- profileImage.centerYAnchor.constraint(equalTo: view.centerYAnchor, constant: -100).isActive = true
- profileImage.widthAnchor.constraint(equalToConstant: 100).isActive = true
- profileImage.heightAnchor.constraint(equalToConstant: 100).isActive = true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement