Created
October 11, 2017 12:53
-
-
Save marekkrzynowek/0cc35084be63bbe97d292d24f4d0c644 to your computer and use it in GitHub Desktop.
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 bigSquare = UIView(frame: CGRect(x: 0, y: 0, width: 120, height: 120)) | |
bigSquare.backgroundColor = UIColor.green | |
let smallSquare = UIView(frame: CGRect(x: 0, y: 0, width: 40, height: 40)) | |
bigSquare.addSubview(smallSquare) | |
smallSquare.backgroundColor = UIColor.blue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment