Math, asked by nitinnitin6718, 1 year ago

Difference between frame rectangle and alignment rectangle

Answers

Answered by Selvasiddharth
1
HERE IS UR ANSWER DUDE....PLS MARK MY ANSWER AS BRAINLIEST ANSWER .....

Frames describe where to place views on the screen and how big those views will be. When laying out views, constraints use a related geometric element called an alignment rectangle.

The alignment rectangle is based on the presentation of the item’s content, Auto Layout uses the alignment rectangle instead of the item’s frame rectangle. By working with alignment rectangles instead of frames, Auto Layout ensures that key information like a view’s edges and center are properly considered during layout. Unlike frames, a view’s alignment rectangle should be limited to a core visual element. Its size should remain unaffected as new items are drawn onto the view.

Similar questions