Pravesh Dubey
What is difference between Bounds and Frame
By Pravesh Dubey in Swift on Nov 01 2019
  • Dipa Mehta
    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
  • Dipa Mehta
    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
  • Logesh Palani
    Feb, 2020 3

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

    1. Important for: placing the view in the parent

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

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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS