I'm having trouble programmatically moving a button.
I am using this code in viewDidLoad and I am NOT using auto-layout:
button.frame.origin = CGPoint(x: 0, y: 0)
But the button remains in its original position on the screen at runtime.
The strange thing is, the coordinates are actually being updated, but not being represented on the screen.
If I run the following code:
print(button.frame.origin.x) // prints 45.0
button.frame.origin = CGPoint(x: 0, y: 0)
print(button.frame.origin.x) // prints 0.0
But on screen the button remains at 45.
What am I doing wrong?