Created
May 11, 2020 16:27
-
-
Save stevencurtis/1d69a5199bd0e9db34e44c41eca23641 to your computer and use it in GitHub Desktop.
centerView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let centerView = UIView(frame: CGRect(x: 0, y: 0, width: 100, height: 100)) | |
centerView.backgroundColor = .green | |
centerView.center = CGPoint(x: 200, y: 200) | |
self.view.addSubview(centerView) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment