RDVTabBarController icon indicating copy to clipboard operation
RDVTabBarController copied to clipboard

UI Changes for TabBarController in iPhoneXR

Open thejeswara opened this issue 4 years ago • 2 comments

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

Xcode 10.1 Swift 4.2

Please help Thanks

thejeswara avatar Oct 10 '19 07:10 thejeswara

I have the same issue

aps112 avatar Feb 27 '20 11:02 aps112

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.

thejeswara avatar Feb 28 '20 07:02 thejeswara