1

I'm hiding the tabBar of a UITabBarController for a certain screen with a UIScrollView. However, that causes the scrollView to cover the entire iPhoneX screen. How can I hide the tabBar without having the scrollView cover the safe area?

I've attempted using view.safeAreaLayoutGuide.bottomAnchor like so:

scrollView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor).isActive = true

But this doesn't seem to work.

Bob
  • 513
  • 1
  • 5
  • 14

0 Answers0