瀏覽代碼

AppearanceManager: UITabBar: Set unselectedItemTintColor

Soomin Lee 5 年之前
父節點
當前提交
f03095d6fc
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Sources/AppearanceManager.swift

+ 3 - 0
Sources/AppearanceManager.swift

@@ -41,6 +41,9 @@ class AppearanceManager: NSObject {
         UISearchBar.appearance().barTintColor = .white
 
         UITabBar.appearance().tintColor = theme.colors.orangeUI
+        if #available(iOS 10.0, *) {
+            UITabBar.appearance().unselectedItemTintColor = theme.colors.cellDetailTextColor
+        }
 
         UIPageControl.appearance().backgroundColor = theme.colors.background
         UIPageControl.appearance().pageIndicatorTintColor = .lightGray