Skip to content

Instantly share code, notes, and snippets.

@zenangst
Last active February 16, 2018 07:44
Show Gist options
  • Save zenangst/119c2230b72c691317dc2255432985ac to your computer and use it in GitHub Desktop.
Save zenangst/119c2230b72c691317dc2255432985ac to your computer and use it in GitHub Desktop.
Setting a background color to an NSView - iOS Example
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