Hello
I have a Raindrop shape:
When I trim it in the ContentView, it trims from right to left, is there a way to trim it from top to bottom?
Thank you
I have a Raindrop shape:
Code Block struct Raindrop: Shape { func path(in rect: CGRect) -> Path { Path { path in path.move(to: CGPoint(x: rect.size.width / 2, y: 0)) path.addQuadCurve(to: CGPoint(x: rect.size.width / 2, y: rect.size.height), control: CGPoint(x: rect.size.width, y: rect.size.height)) path.addQuadCurve(to: CGPoint(x: rect.size.width / 2, y: 0), control: CGPoint(x: 0, y: rect.size.height)) } } }
When I trim it in the ContentView, it trims from right to left, is there a way to trim it from top to bottom?
Code Block Raindrop() .trim(from: 0.9, to: 1) .scaledToFit()
Thank you