1

I have added UITableViewController in storyboard. This UITableView merges with the home indicator on an iPhoneX device and on top also cut.

How can I fix this issue?

Rishi Chaurasia
  • 520
  • 4
  • 18
Nimisha Ranipa
  • 8,304
  • 2
  • 14
  • 29

2 Answers2

2

select your main viewController or your main view in storyboard and enable the option safe area layout Guide

check in this image

Nandkishor mewara
  • 2,552
  • 16
  • 29
-1

use this:

override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
        tableView.invalidateIntrinsicContentSize()
    }
Rishi Chaurasia
  • 520
  • 4
  • 18