diff --git a/CBFlashyTabBarController.podspec b/CBFlashyTabBarController.podspec
index 13b7151..61239a8 100644
--- a/CBFlashyTabBarController.podspec
+++ b/CBFlashyTabBarController.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'CBFlashyTabBarController'
- s.version = '0.8.2'
+ s.version = '0.8.3'
s.summary = 'One another nice animated tabbar'
s.homepage = 'https://github.com/Cuberto/flashy-tabbar'
s.license = 'MIT'
diff --git a/CBFlashyTabBarController/Classes/CBFlashyTabBar.swift b/CBFlashyTabBarController/Classes/CBFlashyTabBar.swift
index 5d520b9..bcbb0c8 100644
--- a/CBFlashyTabBarController/Classes/CBFlashyTabBar.swift
+++ b/CBFlashyTabBarController/Classes/CBFlashyTabBar.swift
@@ -40,22 +40,6 @@ open class CBFlashyTabBar: UITabBar {
}
}
- public override init(frame: CGRect) {
- super.init(frame: frame)
- configure()
- }
-
- public required init?(coder aDecoder: NSCoder) {
- super.init(coder: aDecoder)
- configure()
- }
-
- private func configure() {
- backgroundColor = UIColor.white
- isTranslucent = false
- barTintColor = UIColor.white
- }
-
open override var items: [UITabBarItem]? {
didSet {
reloadViews()
diff --git a/CBFlashyTabBarController/Classes/CBFlashyTabBarController.swift b/CBFlashyTabBarController/Classes/CBFlashyTabBarController.swift
index 5aad705..42c9e4a 100644
--- a/CBFlashyTabBarController/Classes/CBFlashyTabBarController.swift
+++ b/CBFlashyTabBarController/Classes/CBFlashyTabBarController.swift
@@ -45,7 +45,9 @@ open class CBFlashyTabBarController: UITabBarController {
return
}
let tabBar = CBFlashyTabBar()
- tabBar.barTintColor = self.tabBar.barTintColor
+ if let barTint = self.tabBar.barTintColor {
+ tabBar.barTintColor = barTint
+ }
self.setValue(tabBar, forKey: "tabBar")
}
diff --git a/CBFlashyTabBarController/Info.plist b/CBFlashyTabBarController/Info.plist
index 278e1be..cf64a36 100644
--- a/CBFlashyTabBarController/Info.plist
+++ b/CBFlashyTabBarController/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 0.8.2
+ 0.8.3
CFBundleVersion
$(CURRENT_PROJECT_VERSION)
diff --git a/Example/AppDelegate.swift b/Example/AppDelegate.swift
index 926908a..d72fef3 100644
--- a/Example/AppDelegate.swift
+++ b/Example/AppDelegate.swift
@@ -17,6 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
CBFlashyTabBar.appearance().tintColor = #colorLiteral(red: 0.1176470588, green: 0.1176470588, blue: 0.431372549, alpha: 1)
+ CBFlashyTabBar.appearance().barTintColor = .white
return true
}