I have a UIButton
that is nested within 2 UIStackView
s that are nested within a UIView
.
I give it constraints, however, when I
print(helloButton.frame)
the CGRect
output has different values than what appears on the screen.
Notably the coordinates are off.
Is there a reason for this? How do I accurately get the UIButton
frame?