I have a black rectangle that I am using as the background of one of my views in an app. I have the rectangle set to fill the safe area. Is there a way to find the exact height and width of this rectangle in order to size other objects in the view to fill exact portions of the rectangle?
Swift UI rectangle height and width???
You should use geometryReader:
https://stackoverflow.com/questions/57577462/get-width-of-a-view-using-in-swiftui
How do you create the Rectangle ? Don't you define its frame ?
...There's such thing as .background