It seems that hiding the tabBar create side effect with the bottom constraint of the controllers added to the tabBar.
Using Snapkit:
placeholderView.snp.makeConstraints { make in
make.top.equalTo(view.safeAreaLayoutGuide).inset(UI.Margins)
make.bottom.equalTo(view.safeAreaLayoutGuide).inset(UI.Margins)
make.right.left.equalToSuperview()
}
placeholderView is under the tabBar when it's hidden.
It seems that hiding the tabBar create side effect with the bottom constraint of the controllers added to the tabBar. Using Snapkit:
placeholderView
is under the tabBar when it's hidden.these two lines fix the issue