Vertically, my views:
Safe Area <- 40 -> Label
So in Interface Builder, iPhone 8, the Label
has a Y coordinate of 60. Because of the 40 top constraint, but also the safe area has a height of 20
At runtime, I also see the label has the Y coordinate of 60
However, when I set a breakpoint in viewDidLoad()
, it looks like that safe area isn't factored in y et, because the Label
has a Y coordinate of 40
I have tried calling view.layoutSubviews()
, and the Label still doesn't move until some time after viewDidLoad()
.
Is there any way to get the final Y coordinate (60) in my viewDidLoad()
?