Closed Gagan6696 closed 5 years ago
Hi, @Gagan6696, you can change FanMenu.swift:
you can switch here to any shape
I already tried this by changing different parameters like reduce radius to half. But unfortunately nothing changed. Could you please define me parameters , which I need to change
Hey @Gagan6696!
I'm sorry for the late response, but here is a solution to this issue. You need to replace form
attribute of backgroundCircle
shape with a custom path:
backgroundCircle = Shape(
form: Path(segments: [
PathSegment(type: .M, data: [0, 0]),
PathSegment(type: .m, data: [-fanMenu.radius, 0]),
PathSegment(type: .a, data: [fanMenu.radius, fanMenu.radius, 0, 1, 0, fanMenu.radius * 2, 0])
])
)
Result:
Hello sir,
I want to show half circle rather than full circle. which code should I need to update ??