Closed bcardarella closed 6 months ago
Try using .linearGradient(...)
instead of Gradient
. This may require adding a startPoint
and endPoint
argument.
@carson-katri can we support the Gradient
as I've outlined it? The AST forms correctly and using the list of Color
s is valid in SwiftUI itself.
I'm trying to implement the
.background
modifier for a Gradient as taken from the Swift tutorial:https://developer.apple.com/tutorials/develop-in-swift/design-an-interface#Define-colors-in-the-asset-catalog
with
gradientColors
being defined in the Asset Catalog. I've tried to do this instead:I've confirmed this works in SwiftUI:
and it parses OK on the Elixir side:
but it fails in the client: