Ramotion / animated-tab-bar

:octocat: RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
https://www.ramotion.com/animated-tab-bar-ios-app-development-ui-library/
MIT License
11.13k stars 1.33k forks source link

Bottombar not display proper in iPhone 11 pro max #270

Closed codal-jayeshk closed 4 years ago

codal-jayeshk commented 4 years ago

Hello

Simulator Screen Shot - iPhone 11 Pro Max - 2019-11-15 at 14 30 02 Bottombar is not display on bottom accordingly to safe area in iPhone 11 pro max.

igork-ramotion commented 4 years ago

@codal-jayeshk Hey!) This is not a bug, we think that it looks better at the bottom. If you want to put bottomLine above safe area you can fork and update sources

From: bottomLine?.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true

To:

if #available(iOS 11.0, *) {
    bottomLine?.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor).isActive = true
} else {
    bottomLine?.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
}