Last active
November 30, 2019 18:48
-
-
Save santoshrajan/b517bcd65eb25cefa9a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
view.backgroundColor = UIColor.lightGrayColor() | |
var vLayout = VerticalFitLayout(width: view.frame.width) | |
vLayout.backgroundColor = UIColor.cyanColor() | |
view.addSubview(vLayout) | |
let view1 = UIView(frame: CGRectMake(100, 50, 100, 100)) | |
view1.backgroundColor = UIColor.redColor() | |
vLayout.addSubview(view1) | |
let view2 = UIView(frame: CGRectMake(100, 50, 100, 0)) | |
view2.backgroundColor = UIColor.magentaColor() | |
vLayout.addSubview(view2) | |
let view3 = UIView(frame: CGRectMake(100, 50, 100, 100)) | |
view3.backgroundColor = UIColor.blueColor() | |
vLayout.addSubview(view3) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment