HomeiOS Developmentios - Unremovable white background round objects in LazyVGrid ScrollView

ios – Unremovable white background round objects in LazyVGrid ScrollView


There’s a white background surrounding the objects that has randomly confirmed up and i am unable to take away:
here is what it appears like

A person merchandise is created in my ShelvesView, which is beneath, and is then put in a for every loop in a separate view to show a number of in a grid.

 NavigationView {
            
            ZStack {
                
                RoundedRectangle(cornerRadius: 10)
                    .fill(Colour.blue)
                    .body(width: 150, top: 150)
                    .background(Colour.clear)
                    .contextMenu {
                        Button(motion: {
                            if let index = shelvesviewModel.objects.firstIndex(of: merchandise) {
                                shelvesviewModel.deleteItem(indexSet: IndexSet([index]))
                            }
                        }) {
                            Label("Delete", systemImage: "trash")
                        }
                        Button(motion: {
                            self.showEditMedicineView = true
                        }, label: {
                            HStack {
                                Textual content("Edit")
                                Picture(systemName: "pencil")
                            }
                        })
                        
                    }.background(Colour.clear)
                NavigationLink(vacation spot: EditmedicineView(merchandise: merchandise), isActive: $showEditMedicineView) {
                    EmptyView()
                }.hidden()
               
                        
                        .onLongPressGesture {
                            // Deal with the lengthy press gesture if wanted
                        
                        }
                
                VStack {
                    
                    Group {
                        Textual content(merchandise.title)
                        Textual content(merchandise.freq)
                    }
                            
                        }
            
            
                    }

I attempted altering the background colour to clear and crimson for debugging functions on each stack and look at and nothing has modified.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments