Xcode – A common type for all SwiftUI Shapes
I write a code for SwiftUI that delivers a certain Shape depending on an Enum parameter. Unfortunately, a switch command, which seems natural for the purpose, complains that Rectangle(), Circle(), and Diamond() (my own Shape) have all mismatching types. How…