Post

Replies

Boosts

Views

Activity

Reply to SwiftUI optional @ViewBuilder parameters
I included the link to the article explain in detail what I am trying to achieve. You need to read that short article to fully understand. However try this: init(@ViewBuilder contentBuilder: (() -› Content)?) { } and if you can figure that out, try to make a second parameter of the same type
Jun ’22