You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I define the code connect SwiftUI code generation like below:
@FigmaBoolean("useLabel?")
var useLabel: Bool = false
@FigmaString("label")
var label: String = "Label"
MyComponent()
.figmaApply(useLabel) {
$0.accessibilityLabel(label)
}
In Figma Code Connect playground, when setting the useLabel? property to true, and the label property to something like Test,
instead of the expected generated SwiftUI code block :
MyComponent()
.accessibilityLabel("Test")
it will always generates the code:
MyComponent()
.accessibilityLabel(label)
It would be much appreciated if we could also support using other Figma properties inside the figmaApply conditional blocks, so the result would be like the expected generated SwiftUI code block above.
Thank you!
The text was updated successfully, but these errors were encountered:
danielsinclairtill
changed the title
FigmaApply to support using Figma property values in conditional blocks
[SwiftUI] FigmaApply to support using Figma property values in conditional blocks
Jan 9, 2025
Describe the feature you'd like:
I am requesting an additional feature for the SwiftUI
.figmaApply
function.If I define the code connect SwiftUI code generation like below:
In Figma Code Connect playground, when setting the
useLabel?
property to true, and thelabel
property to something likeTest
,instead of the expected generated SwiftUI code block :
it will always generates the code:
It would be much appreciated if we could also support using other Figma properties inside the
figmaApply
conditional blocks, so the result would be like the expected generated SwiftUI code block above.Thank you!
The text was updated successfully, but these errors were encountered: