Rectangular spotlight?
JMSerruya opened this issue · 2 comments
JMSerruya commented
Any way to create a rectangular spotlight?, the Oval deforms quite a bit if i want to highlight a bigger rectangle.
lekshmiraveendranath commented
Sure. You can pass the target as type .rect
See example below
SpotlightNode(text: "Show Spotlight over a rectangle", target: .rect(redView.bounds))]
JMSerruya commented
@lekshmiraveendranath Even passing a rect, the highlight is still an oval, what i'm asking if it there's a way to make the highlight itself rectangular, given that it deforms quite a bit if i'm hightlighting a big rectangle.