瀏覽代碼

removed duplicated

marinofaggiana 4 年之前
父節點
當前提交
28a8849268
共有 1 個文件被更改,包括 0 次插入14 次删除
  1. 0 14
      iOSClient/Main/NCMainCommon.swift

+ 0 - 14
iOSClient/Main/NCMainCommon.swift

@@ -1012,20 +1012,6 @@ class CCMainTabBarController : UITabBarController, UITabBarControllerDelegate {
     }
 }
 
-//
-// https://stackoverflow.com/questions/44822558/ios-11-uitabbar-uitabbaritem-positioning-issue/46348796#46348796
-//
-extension UITabBar {
-    // Workaround for iOS 11's new UITabBar behavior where on iPad, the UITabBar inside
-    // the Master view controller shows the UITabBarItem icon next to the text
-    override open var traitCollection: UITraitCollection {
-        if UIDevice.current.userInterfaceIdiom == .pad {
-            return UITraitCollection(horizontalSizeClass: .compact)
-        }
-        return super.traitCollection
-    }
-}
-
 //MARK: - Networking Main
 
 class NCNetworkingMain: NSObject, IMImagemeterViewerDelegate {