Swipe Gestures

Hi! I have this code, and when I do it according to the documentation, it doesn't let me swipe. Please Help!

Answered by Mcrich23 in 705167022

Update: It's working, just doesn't really work well in the simulator

Example in Apple's doc is different : https://developer.apple.com/documentation/SwiftUI/View/swipeActions(edge:allowsFullSwipe:content:)

Instead of:

                .swipeActions(edge: .trailing, allowsFullSwipe: true) {
                                Button {
                                    moveRest(buisness: buisness)
                                } label: {
                                    VStack {
                                        Image(systemName: "hand.thumbsup")
                                        Text("Move to No List")
                                    }
                                    .foregroundColor(.white)
                                }
                                .background(.red)

It reads:

                  .swipeActions(edge: .trailing, allowsFullSwipe: true) {
                       Button {moveRest(buisness: buisness)
                                } label: {
                           Label("Move to No List", systemImage: "envelope.open")
                                    .foregroundColor(.white)
                                }
                                .tint(.red)

Could you test the change ?

Unfortunately, it did not work.

Here you go:

Accepted Answer

Update: It's working, just doesn't really work well in the simulator

Swipe Gestures
 
 
Q