Skip to content

PopView doesn't work for me (Xcode 11.3.1) #10

Closed
@aliben

Description

@aliben

Hello,
I've been trying your awesome navigation stack and it's been great to push the views, but I couldn't manage to make to PopView work ( it doesn't send me to the previous view even when I set an Id ) I honestly don't know what am doing wrong.

ParentView where I use the PushView ( works fine )
ScrollView(.horizontal, showsIndicators: false) { HStack (spacing: 16){ ForEach(productData){ item in PushView(destination: ProductDetails()){ SingleProduct(showCount: false, count: 01, countnull: false, singleProduct: item) } } }.frame(height: 320) .padding(.top,20) .padding(.horizontal) } .offset( y: -15)
`

ChildView ( Doesn't work )

HStack{ PopView(isActive: $isActive){ Button(action: { self.isActive.toggle() }){ Image(systemName: "arrow.left") .font(.system(size: 24, weight:.regular, design: .default)) .foregroundColor(Color.black) .frame(width:45,height: 45) .background(Color.white) .cornerRadius(13) .shadow(color: Color.black.opacity(0.1), radius: 10, x: 0, y: 12) } } } .padding(.horizontal,16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions