You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we perform layout by setting views' frames. Using frame for layout has some significant disadvantages. You can read about some of the complexity behind frames here. The most notable comes from this warning on the documentation for UIView.frame:
Instead of using frame to perform layout, we should instead set our views' bounds and center. This should have almost the same behavior as setting the frame, except in cases where the view has a non-identity transform (in which case the frame is undefined anyway). This also matches how Auto Layout behaves around transforms.
The text was updated successfully, but these errors were encountered:
Currently we perform layout by setting views' frames. Using
frame
for layout has some significant disadvantages. You can read about some of the complexity behind frames here. The most notable comes from this warning on the documentation for UIView.frame:Instead of using
frame
to perform layout, we should instead set our views'bounds
andcenter
. This should have almost the same behavior as setting theframe
, except in cases where the view has a non-identity transform (in which case theframe
is undefined anyway). This also matches how Auto Layout behaves around transforms.The text was updated successfully, but these errors were encountered: