From a37baa30fd4b3faef4cefde87be1b51610819692 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Wed, 9 Dec 2015 13:34:09 +0800 Subject: [PATCH] private in YepTabBar --- Yep/ViewControllers/TabBar/YepTabBarController.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Yep/ViewControllers/TabBar/YepTabBarController.swift b/Yep/ViewControllers/TabBar/YepTabBarController.swift index fba31211..3354b3a8 100644 --- a/Yep/ViewControllers/TabBar/YepTabBarController.swift +++ b/Yep/ViewControllers/TabBar/YepTabBarController.swift @@ -10,7 +10,7 @@ import UIKit class YepTabBarController: UITabBarController { - enum Tab: Int { + private enum Tab: Int { case Conversations case Contacts @@ -35,10 +35,10 @@ class YepTabBarController: UITabBarController { } } - var previousTab = Tab.Conversations + private var previousTab = Tab.Conversations - var checkDoubleTapOnFeedsTimer: NSTimer? - var hasFirstTapOnFeedsWhenItIsAtTop = false { + private var checkDoubleTapOnFeedsTimer: NSTimer? + private var hasFirstTapOnFeedsWhenItIsAtTop = false { willSet { if newValue { let timer = NSTimer.scheduledTimerWithTimeInterval(0.5, target: self, selector: "checkDoubleTapOnFeeds:", userInfo: nil, repeats: false) @@ -50,12 +50,12 @@ class YepTabBarController: UITabBarController { } } - func checkDoubleTapOnFeeds(timer: NSTimer) { + @objc private func checkDoubleTapOnFeeds(timer: NSTimer) { hasFirstTapOnFeedsWhenItIsAtTop = false } - struct Listener { + private struct Listener { static let lauchStyle = "YepTabBarController.lauchStyle" }