What is difference between Bounds and Frame
By in on Nov 01 2019
• Nov, 2019 5

Frame: a view’s location and size using parent’s view coordinate system. Bounds: a view’s location and size using it’s own coordinate system.

• 1
• Nov, 2019 2

The bounds refers to its coordinates relative to its own space (as if the rest of your view hierarchy didn’t exist), whereas its frame refers to its coordinates relative to its parent’s space.

• 1
• Feb, 2020 3

- frame = a view’s location and size using the parent view’s coordinate system

Important for: placing the view in the parent

bounds = a view’s location and size using its own coordinate system

Important for: placing the view's content or subviews within itself

• 0