It seems that with Xcode 8, on viewDidLoad, all viewcontroller subviews have the same size of 1000x1000. Strange thing, but okay, viewDidLoad has n
viewDidLoad
Are you using rounded corners for your button ? Try calling layoutIfNeeded() before.
layoutIfNeeded()