Frame vs Bounds in iOS

Suragch
7 min readDec 14, 2018

This article is a repost of an answer I wrote on Stack Overflow.

Short description

  • 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)

Details

To help me remember frame, I think of a picture frame on a wall. The picture frame is like the border of a view. I can hang…

--

--