I finally found the issue, it was really stupid. I accidentally haves a standard UIViewController handling my UITableView. The UITableView is my main view and it is not contained in a standard UIView.
When I replaced the UIViewController inheritance with just UITableViewController, everything started working as expected.