Make Scalable SwiftUI Shapes With Relative X and Y Points
Daily Coding Tip 013
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 …



