How to implement a dynamic section items #2146
Unanswered
kakhaberikiknadze
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I've been wondering how to properly implement dynamic section items using TCA.
What I want to achieve is to have a settings view that would render different components like
Picker
,Toggle
etc. dynamically through the view state. I've got a naive working solution using Vanilla SwiftUIBinding
andIdentifiedArray
(worked withoutIdentifiedArray
as well but it takes less lines with identified one).Naive working solution (works on iOS and macOS)
Screen.Recording.2023-05-27.at.14.20.12.mov
Beta Was this translation helpful? Give feedback.
All reactions