UITableView behavior on iPhone Duo

I’m adapting a UIKit app for iPhone Duo and noticed that UITableViewController separators extend underneath the navigation and tab bar controls when those controls move to the side. The cell content appears to respect the safe area, but the separators continue to the screen edge. When using a UITableView inside a regular UIViewController, constraining its horizontal edges to the parent’s safeAreaLayoutGuide prevents this. With UITableViewController, however, the table view is the controller’s root view. The attached screenshots show the difference:

  • Screenshot 1: Separators extend underneath the side controls.
  • Screenshot 2: Separators stop at the safe area boundary.

Should UITableViewController respect these safe area boundaries out of the box, including for separators, when system controls move to the side? Or is drawing separators underneath those controls the intended behavior? If automatic adaptation is expected, could this be a UIKit issue?

I found the cause: this happens when separatorInset is explicitly set on either the table view or its cells. With the default insets, separators respect the safe area. Setting separatorInset to .zero makes them extend to the table view’s edges, including underneath the side controls. In my case, removing the explicit separator insets restored the expected behavior. This wasn’t an issue specific to UITableViewController.