My iOS Widget is crashing as soon I add the cornerRadius
modifier to a view in my SwiftUI layout or a clipShape
to clip a view.
Did anybody experience the same behaviour and found a solution?
I tried it with Xcode 12.1 and iOS 14.1 Simulator and also with Xcode 12.2 and iOS 14.2 Simulator which gave the same result.
Example code that's crashing the widget:
Image("sampleimage")
.background(Color.blue)
.cornerRadius(20)