Can someone please confirm that this problem is real (missing functionality)? Any pointers as to how to implement this would be welcome. I've only scratched the surface of how the introspection works, and Im not sure if supporting @ToolbarContentBuilder is any different from @ViewBuilder. (I guess it shouldn't matter? 🤷♂️)
Hi, thanks for the awesome work!
I believe that as of version
0.9.9
, inspecting conditional toolbar content is not supported. I.e. if I have a toolbar like:, there is no way to inspect the
Text("X")
. You can't.find
it, nor can you reach it via.toolbar().item()
.FWIW, the workaround Im using is always including the ToolbarItems but making their label conditional:
Can someone please confirm that this problem is real (missing functionality)? Any pointers as to how to implement this would be welcome. I've only scratched the surface of how the introspection works, and Im not sure if supporting
@ToolbarContentBuilder
is any different from@ViewBuilder
. (I guess it shouldn't matter? 🤷♂️)