You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing this weird behavior. In my list - I get a Delete button if I tap to swipe in the white-space; but I get the Edit button sometimes (I guess if I tap over text content).
Can you help me get consistent behavior?
The text was updated successfully, but these errors were encountered:
Oh - I think I found the issue... had existing code - that also worked quite well with SwipeAction - well, except for the UI weirdness. I've removed this code and then I do NOT get the red Delete button.
// This onDelete also works in SwipeActions
.onDelete { indexSet in
withAnimation {
indexSet.forEach { index in
let stock = sortedEquities[index]
account.equities?.forEach({ stockIN in
if stock.id == stockIN.id {
dbContext.delete(stock)
}
})
}
}
}
I get the Button - yet when clicked/tapped - the list does NOT refresh so the ROW stays on the screen, I have to leave the screen and come back to see the ROW has been removed. What magic do I need to get a refresh?
I'm seeing this weird behavior. In my list - I get a Delete button if I tap to swipe in the white-space; but I get the Edit button sometimes (I guess if I tap over text content).
Can you help me get consistent behavior?
The text was updated successfully, but these errors were encountered: