Questions tagged [swiftui-swipeactions]
18 questions
0
votes
1 answer
Changing swipeActions dynamically in SwiftUI
I am trying to change the swipeAction from "Paid" to "UnPaid" based on payment status and somehow seems to be failing. Error: "The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct…

codemechanics
- 15
- 3
0
votes
0 answers
Converting View to Image issue
I'm using tutorial from here https://www.hackingwithswift.com/quick-start/swiftui/how-to-convert-a-swiftui-view-to-an-image
extension View {
func snapshot() -> UIImage {
let controller = UIHostingController(rootView: self)
let…

Konstantin.Efimenko
- 1,242
- 1
- 14
- 38
0
votes
0 answers
Why do swipeActions not work on a sidebar style list?
I'm trying to add SwipeActions to a List in SwiftUI. It is working as expected, but as soon as i give the list the .sidebar listStyle it stops working. Here is a minimal code example showing this problem (can be used in Swift Playgrounds):
import…

Jonas
- 21
- 1
- 3