Hi @sha921 ,
thank you again for your help. Unfortunately I have a few problems implementing your code:
-> When I use NavigationStack instead of NavigationView, it looks like this:
The reason for this is, that I implemented a background for iPad use, where it should look like this:
How can I implement this with NavigationStack?
-> The other problem is, that it looks like this, when I move the Section inside the loop:
I moved the Section directly underneath the if statement, like this:
ForEach(bprs, id: \.self) { bpr in
Section (header: Text("Herangehensweise")){
if bpr.contains("basismaßnahmen") {
Is that wrong?
Thank you for your help!
Laurin
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: