There are times when we want to position something relative to the bounds of a rectangle.
This is common in UIKit, where every UIView
has a frame
property we can easily access. This frame comes in the form of a CGRect, which has many properties of its own: minX
, midX
and maxX
, as well as the corresponding properties in the …
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.