HomeiOS DevelopmentConcentric corners in a Navigation vacation spot

Concentric corners in a Navigation vacation spot


I’ve this view with a GroupBox on the backside. I apply the concentric clipShape and it seems to be nice:

struct ContentView: View {
    var physique: some View {
        VStack {
            Spacer()
            
            NavigationLink("Push", worth: "Take a look at")
            
            GroupBox("Take a look at") {
                Textual content("Take a look at")
                Textual content("Take a look at")
                Textual content("Take a look at")
            }
            .clipShape(.rect(corners: .concentric))
            
        }
        .scenePadding()
        .ignoresSafeArea(edges: [.bottom])
    }
}

Concentric corners in a Navigation vacation spot

Nonetheless, if this can be a view that is been pushed onto a navigation stack, the primary view works, however the pushed one would not:

    NavigationStack {
        ContentView()
            .navigationDestination(for: String.self) { _ in
                ContentView()
            }
    }

enter image description here

Is there one thing I have to do to have the stack apply concentric corners?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments