Open BrooklinJazz opened 7 months ago
This issue should be moved to the SwiftUI client
@carson-katri is it possible through the Registry to add support for these on an ad-hoc basis? So if a dev wanted to add support for a non-standard shape in this case they can still do so?
Currently there is no way to add custom shapes that can be passed to existing modifiers through the registry. You can create your own modifier that uses your custom shape though.
ok, I'd like to explore this in the future but we can go with the work around for now.
Added to backlog
To convert the following SwiftUI example into the LVN DSL
I wanted to pass a
Circle
view to theclipShape
modifier using thetemplate
attribute like so:Template
Stylesheet
However @carson-katri informed me we don't support that syntax, and only support the list of standard shapes: https://developer.apple.com/documentation/swiftui/shape
So we can convert the following syntax into the LVN DSL:
But not the original syntax used in the example: