XCode 14 - trailingSwipeActionsConfigurationForRowAt - simulator/real device

Hi, On the Xcode 14.1 Simulator with an iPhone 14 on iOS 16.1, the Swipe actions on UITableViewCells are not displayed easily when doing a swipe. At the opposite on a real device, the option is displayed without problem. Do you have any idea on how to fix that. I have this simple code to add a delete action on tableView cells:

func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
    let action = UIContextualAction(style: .destructive,
                    title: "delete") { [weak self] (action, view, completionHandler) in
                    completionHandler(true)
    }
    action.image = UIImage(named: "trash")
        
    let configuration = UISwipeActionsConfiguration(actions: [action])
    configuration.performsFirstActionWithFullSwipe = false
    return configuration
}

Thank you.

XCode 14 - trailingSwipeActionsConfigurationForRowAt - simulator/real device
 
 
Q