SwitUI – Two navigationLink in a list

Try the following approach – the idea is to hide links in background of visible content and make them inactive for UI, but activated programmatically. Tested with Xcode 12 / iOS 14. struct MultiNavLink: View { var body: some View { return NavigationView { List { OneRowView() }.navigationBarTitle(“MultiNavLink”, displayMode: .inline) } } } struct OneRowView: … Read more

Are there maximum limits to VStack?

SwiftUI uses ViewBuilder to construct the views that make up many SwiftUI views, like VStack, HStack, List, etc. If you take a look at the ViewBuilder documentation, you’ll see that the buildBlock function has many copies, each with a different amount of views as arguments. The function with the most amount of views only takes … Read more