Can't use rotation effect in clip shape in swiftUI – Ios swift
This i my code: Image() .resizable() .scaledToFill() .frame(width: 200, height: 200) .clipShape(Rectangle().cornerRadius(8).rotationEffect(.degrees(45))) I receive this error: Instance method 'clipShape(_:style:)' requires that 'some View' conform to 'Shape' Or you know another way to crop my image to diamond?