Day 2: Difference between Frame and Bounds?

Max
Jan 23, 2018

--

Photo by Anton Maksimov 5642.su on Unsplash

Bounds : The bounds of an UIView is the rectangle, expressed as a location (x,y) and size (width, height) relative to its own coordinate system.

Frame : The rect of an UIView is the rectangle, expressed as a location (x,y) and size (width, height) relative to its superview’s coordinate system.

That’s one question, see you tomorrow. If you ❤️ this article please give it a clap👏 and support my work. Also, smash that Follow icon 🟢 to get posts delivered to you on your couch. We are in this together 😇. Cheers!

Psst!👋, want to continue? Go to next article in the series or if you wish to start from beginning.

--

--

Max
Max

Written by Max

Senior iOS Engineer | Swift | ObjectiveC | SwiftUI | Combine |

No responses yet