My Code looks something like this:
import SwiftUI
struct MainView: View {
var body: some View {
CGRect(x: 20, y: 20, width: 100, height: 100)
}
}
However, I get the error:
Static method 'buildBlock' requires that 'CGRect' conform to 'View'
How can I use CGRect with SwiftUI?