Last active
February 16, 2018 07:44
-
-
Save zenangst/119c2230b72c691317dc2255432985ac to your computer and use it in GitHub Desktop.
Setting a background color to an NSView - iOS Example
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
import UIKit | |
let frame = CGRect(origin: .zero, size: CGSize(width: 100, height: 100)) | |
let view = UIView(frame: frame) | |
view.backgroundColor = UIColor.blue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment