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 ?