In Swift, how do I get the width (or height) at runtime, of a UIView that\'s created programmatically using auto layout constraints?
I\'ve tried view1.frame.size.
view1.frame.size.
Add this and you are good to go:
override func viewDidLayoutSubviews() { println(self.view1.frame.size) }
you can look at width or height as you please.