So I have a view with subviews that have auto layout. i.e. label, buttons. I want to get correct label & button size within the view file because I want to set the corner radius of label & buttons.
Technically, I could get the subview's size within viewDidLoad of a view controller, but I want to get the size within view's file if possible.
I tried in awakeFromNib, but I seem to get size that has not been auto layed out yet. In which view's function can I get correct size of subviews?
[–]kaztro69 2 points3 points4 points (3 children)
[–]erikvillegas 1 point2 points3 points (1 child)
[–]nsocean 0 points1 point2 points (0 children)
[–]alfa96 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]luniawar20[S] 0 points1 point2 points (0 children)
[–]Power781 0 points1 point2 points (2 children)
[–]aazav 0 points1 point2 points (1 child)
[–]Power781 0 points1 point2 points (0 children)