I have a UITableView with swipe action that when swiping: A) displays a blank/empty area where the swipe action button should display; and B) the following line is logged to the debug console in Xcode:
[Assert] The pullView is not in a view hierarchy. This is a UIKit bug.
As of today, zero Google results exist for searching on the title of this question.
It turns out that the culprit was the following
Specifically, the
refreshView()call, which contains atableView.reloadData()call, needs to be inside of theif !editing { ... }block. If not, when a swipe action is initiated, the swipe action appears to callsetEditMode(true, ...), thus callingtableView.reloadData()which messes with theUISwipeActionsConfiguration's ability to be properly displayed.Thus the above should look like this: