Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Changes for TabBarController in iPhoneXR #100

Open
thejeswara opened this issue Oct 10, 2019 · 2 comments
Open

UI Changes for TabBarController in iPhoneXR #100

thejeswara opened this issue Oct 10, 2019 · 2 comments

Comments

@thejeswara
Copy link

I am using RDVTabBarControler How to adjust UI on iPhoneXR safe area layout guides.

Xcode 10.1
Swift 4.2

Please help
Thanks

@aps112
Copy link

aps112 commented Feb 27, 2020

I have the same issue

@thejeswara
Copy link
Author

Please follow the below steps to resolve the issue.
Pods -> Pods -> RDVTabBarControllerSwift -> Open UIDevice+RDVTabBar.swift

Add below code on UIDevice+RDVTabBar.swift
fileprivate let IPHONEXR_HEIGHT: CGFloat = 896

internal func isIphoneXR() -> Bool {
return UIDevice.current.isIphoneXR()
}

Open RDVTabBarController.Swift file add isIphoneXR() code on else if

if isIphoneX() {
tabBarContainerHeight = TABBAR_HEIGHT_IPHONE_X
}else if isIphoneXR() {
tabBarContainerHeight = TABBAR_HEIGHT_IPHONE_X
}

Please let me know if issue is solved on your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants