You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I print(view.safeAreaInsets.bottom) in override func viewDidLayoutSubviews() it returns 83.0 (on iPhone X)
I guess this kind of makes sense since collectionView's/etc. natively respect top NavigationBar and TabBar insets.
You have to do something like collectionView.contentInsetAdjustmentBehavior = .never to turn that off. So not sure if you'd have to do something similar to the inputAccessoryView?
Activity
rnystrom commentedon Sep 13, 2018
Is the error that the tab bar insets are being added in the safe area insets method? Like the tab height is included in the inset bottom?
Sent with GitHawk
siefix commentedon Sep 13, 2018
Yes I think so.
When I
print(view.safeAreaInsets.bottom)inoverride func viewDidLayoutSubviews()it returns 83.0 (on iPhone X)I guess this kind of makes sense since
collectionView's/etc. natively respect topNavigationBarandTabBarinsets.You have to do something like
collectionView.contentInsetAdjustmentBehavior = .neverto turn that off. So not sure if you'd have to do something similar to theinputAccessoryView?