in iOS 11 we have a feature in UITableView trailingSwipeActionsConfigurationForRowAt to get the swipe events. But when I try to reduce the height of the row the text disappears and only image remains.
Is there any way I can keep both? My cell height should be 60.0 and I need to show both image and title. It works for 84.0. The image size is 30x30 for @2x and 60x60 for @3x
Below is my code
let contextItem = UIContextualAction(style: .normal, title: "Rename") { (contextualAction, view, boolValue) in
//do something
}
contextItem.image = UIImage(named: "deleteIcon")
let swipeActions = UISwipeActionsConfiguration(actions: [contextItem])