From bcd395c2a6356b4cb2b5b32767ae23ff80401dbe Mon Sep 17 00:00:00 2001 From: Martin Barreto Date: Thu, 28 Jan 2016 15:02:12 -0300 Subject: [PATCH] remove public modifier from example project. --- Example/Example/BarExampleViewController.swift | 10 +++++----- Example/Example/ButtonBarExampleViewController.swift | 8 ++++---- Example/Example/Helpers/DataProvider.swift | 8 ++++---- Example/Example/Helpers/PostCell.swift | 2 +- .../Instagram/InstagramExampleViewController.swift | 6 +++--- .../Example/NavButtonBarExampleViewController.swift | 10 +++++----- Example/Example/ReloadExampleViewController.swift | 10 +++++----- Example/Example/SegmentedExampleViewController.swift | 8 ++++---- Example/Example/TwitterExampleViewController.swift | 6 +++--- 9 files changed, 34 insertions(+), 34 deletions(-) diff --git a/Example/Example/BarExampleViewController.swift b/Example/Example/BarExampleViewController.swift index 19e022c..e0d7331 100644 --- a/Example/Example/BarExampleViewController.swift +++ b/Example/Example/BarExampleViewController.swift @@ -25,14 +25,14 @@ import Foundation import XLPagerTabStrip -public class BarExampleViewController: BarPagerTabStripViewController { +class BarExampleViewController: BarPagerTabStripViewController { var isReload = false - required public init?(coder aDecoder: NSCoder) { + required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } - public override func viewDidLoad() { + override func viewDidLoad() { // set up style before super view did load is executed settings.style.selectedBarBackgroundColor = .orangeColor() @@ -43,7 +43,7 @@ public class BarExampleViewController: BarPagerTabStripViewController { // MARK: - PagerTabStripViewControllerDataSource - public override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { + override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { let child_1 = TableChildExampleViewController(style: .Plain, itemInfo: "Table View") let child_2 = ChildExampleViewController(title: "View") @@ -66,7 +66,7 @@ public class BarExampleViewController: BarPagerTabStripViewController { return Array(childViewControllers.prefix(Int(nItems))) } - public override func reloadPagerTabStripView() { + override func reloadPagerTabStripView() { isReload = true pagerOptions = rand() % 2 == 0 ? pagerOptions.union(.SkipIntermediateViewControllers) : (pagerOptions.remove(.SkipIntermediateViewControllers) ?? pagerOptions) pagerOptions = rand() % 2 == 0 ? pagerOptions.union(.IsProgressiveIndicator) : (pagerOptions.remove(.IsProgressiveIndicator) ?? pagerOptions) diff --git a/Example/Example/ButtonBarExampleViewController.swift b/Example/Example/ButtonBarExampleViewController.swift index d15b754..5a18c81 100644 --- a/Example/Example/ButtonBarExampleViewController.swift +++ b/Example/Example/ButtonBarExampleViewController.swift @@ -25,11 +25,11 @@ import Foundation import XLPagerTabStrip -public class ButtonBarExampleViewController: ButtonBarPagerTabStripViewController { +class ButtonBarExampleViewController: ButtonBarPagerTabStripViewController { var isReload = false - public override func viewDidLoad() { + override func viewDidLoad() { super.viewDidLoad() if pagerOptions.contains(.IsProgressiveIndicator) { @@ -42,7 +42,7 @@ public class ButtonBarExampleViewController: ButtonBarPagerTabStripViewControlle // MARK: - PagerTabStripVIewControllerDataSource - public override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { + override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { let child_1 = TableChildExampleViewController(style: .Plain, itemInfo: "Table View") let child_2 = ChildExampleViewController(title: "View") let child_3 = TableChildExampleViewController(style: .Grouped, itemInfo: "Table View 2") @@ -69,7 +69,7 @@ public class ButtonBarExampleViewController: ButtonBarPagerTabStripViewControlle return Array(childViewControllers.prefix(Int(nItems))) } - public override func reloadPagerTabStripView() { + override func reloadPagerTabStripView() { isReload = true pagerOptions = rand() % 2 == 0 ? pagerOptions.union(.IsProgressiveIndicator) : (pagerOptions.remove(.IsProgressiveIndicator) ?? pagerOptions) pagerOptions = rand() % 2 == 0 ? pagerOptions.union(.IsElasticIndicatorLimit) : (pagerOptions.remove(.IsElasticIndicatorLimit) ?? pagerOptions) diff --git a/Example/Example/Helpers/DataProvider.swift b/Example/Example/Helpers/DataProvider.swift index aa6e3e0..30b8189 100644 --- a/Example/Example/Helpers/DataProvider.swift +++ b/Example/Example/Helpers/DataProvider.swift @@ -35,19 +35,19 @@ class DataProvider { }() } -public class NavController: UINavigationController { +class NavController: UINavigationController { - public override func preferredStatusBarStyle() -> UIStatusBarStyle { + override func preferredStatusBarStyle() -> UIStatusBarStyle { return UIStatusBarStyle.LightContent } } -public class TabBarController : UITabBarController { +class TabBarController : UITabBarController { - public override func preferredStatusBarStyle() -> UIStatusBarStyle { + override func preferredStatusBarStyle() -> UIStatusBarStyle { return UIStatusBarStyle.LightContent } diff --git a/Example/Example/Helpers/PostCell.swift b/Example/Example/Helpers/PostCell.swift index 26033cc..149ed34 100644 --- a/Example/Example/Helpers/PostCell.swift +++ b/Example/Example/Helpers/PostCell.swift @@ -24,7 +24,7 @@ import UIKit -internal class PostCell: UITableViewCell { +class PostCell: UITableViewCell { @IBOutlet weak var userImage: UIImageView! diff --git a/Example/Example/Instagram/InstagramExampleViewController.swift b/Example/Example/Instagram/InstagramExampleViewController.swift index fc42bed..c8e719f 100644 --- a/Example/Example/Instagram/InstagramExampleViewController.swift +++ b/Example/Example/Instagram/InstagramExampleViewController.swift @@ -25,12 +25,12 @@ import Foundation import XLPagerTabStrip -public class InstagramExampleViewController: ButtonBarPagerTabStripViewController { +class InstagramExampleViewController: ButtonBarPagerTabStripViewController { @IBOutlet weak var shadowView: UIView! let blueInstagramColor = UIColor(red: 37/255.0, green: 111/255.0, blue: 206/255.0, alpha: 1.0) - public override func viewDidLoad() { + override func viewDidLoad() { // change selected bar color settings.style.buttonBarBackgroundColor = .whiteColor() settings.style.buttonBarItemBackgroundColor = .whiteColor() @@ -54,7 +54,7 @@ public class InstagramExampleViewController: ButtonBarPagerTabStripViewControlle // MARK: - PagerTabStripVIewControllerDataSource - public override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { + override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { let child_1 = TableChildExampleViewController(style: .Plain, itemInfo: "FOLLOWING") let child_2 = ChildExampleViewController(title: "YOU") return [child_1, child_2] diff --git a/Example/Example/NavButtonBarExampleViewController.swift b/Example/Example/NavButtonBarExampleViewController.swift index 17481fe..527e50b 100644 --- a/Example/Example/NavButtonBarExampleViewController.swift +++ b/Example/Example/NavButtonBarExampleViewController.swift @@ -25,10 +25,10 @@ import Foundation import XLPagerTabStrip -public class NavButtonBarExampleViewController: ButtonBarPagerTabStripViewController { +class NavButtonBarExampleViewController: ButtonBarPagerTabStripViewController { var isReload = false - public override func viewDidLoad() { + override func viewDidLoad() { // set up style before super view did load is executed settings.style.buttonBarBackgroundColor = .clearColor() settings.style.selectedBarBackgroundColor = .orangeColor() @@ -63,7 +63,7 @@ public class NavButtonBarExampleViewController: ButtonBarPagerTabStripViewContro // MARK: - PagerTabStripViewControllerDataSource - public override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { + override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { let child_1 = TableChildExampleViewController(style: .Plain, itemInfo: "Table View") let child_2 = ChildExampleViewController(title: "View") let child_3 = TableChildExampleViewController(style: .Grouped, itemInfo: "Table View 2") @@ -90,14 +90,14 @@ public class NavButtonBarExampleViewController: ButtonBarPagerTabStripViewContro return Array(childViewControllers.prefix(Int(nItems))) } - public override func reloadPagerTabStripView() { + override func reloadPagerTabStripView() { isReload = true pagerOptions = rand() % 2 == 0 ? pagerOptions.union(.IsProgressiveIndicator) : (pagerOptions.remove(.IsProgressiveIndicator) ?? pagerOptions) pagerOptions = rand() % 2 == 0 ? pagerOptions.union(.IsElasticIndicatorLimit) : (pagerOptions.remove(.IsElasticIndicatorLimit) ?? pagerOptions) super.reloadPagerTabStripView() } - public override func configureCell(cell: ButtonBarViewCell, childInfo: ChildItemInfo) { + override func configureCell(cell: ButtonBarViewCell, childInfo: ChildItemInfo) { super.configureCell(cell, childInfo: childInfo) cell.backgroundColor = .clearColor() } diff --git a/Example/Example/ReloadExampleViewController.swift b/Example/Example/ReloadExampleViewController.swift index 6cab654..2d02b92 100644 --- a/Example/Example/ReloadExampleViewController.swift +++ b/Example/Example/ReloadExampleViewController.swift @@ -25,14 +25,14 @@ import UIKit import XLPagerTabStrip -public class ReloadExampleViewController: UIViewController { +class ReloadExampleViewController: UIViewController { - @IBOutlet lazy public var titleLabel: UILabel! = { + @IBOutlet lazy var titleLabel: UILabel! = { let label = UILabel() return label }() - public lazy var bigLabel: UILabel = { + lazy var bigLabel: UILabel = { let bigLabel = UILabel() bigLabel.backgroundColor = .clearColor() bigLabel.textColor = .whiteColor() @@ -41,7 +41,7 @@ public class ReloadExampleViewController: UIViewController { return bigLabel }() - public override func viewDidLoad() { + override func viewDidLoad() { super.viewDidLoad() if let _ = navigationController { @@ -76,7 +76,7 @@ public class ReloadExampleViewController: UIViewController { navigationItem.titleView?.sizeToFit() } - public override func preferredStatusBarStyle() -> UIStatusBarStyle { + override func preferredStatusBarStyle() -> UIStatusBarStyle { return .LightContent } } diff --git a/Example/Example/SegmentedExampleViewController.swift b/Example/Example/SegmentedExampleViewController.swift index 293b364..3d05b57 100644 --- a/Example/Example/SegmentedExampleViewController.swift +++ b/Example/Example/SegmentedExampleViewController.swift @@ -25,11 +25,11 @@ import Foundation import XLPagerTabStrip -public class SegmentedExampleViewController: SegmentedPagerTabStripViewController { +class SegmentedExampleViewController: SegmentedPagerTabStripViewController { var isReload = false - required public init?(coder aDecoder: NSCoder) { + required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) // change segmented style settings.style.segmentedControlColor = .whiteColor() @@ -37,7 +37,7 @@ public class SegmentedExampleViewController: SegmentedPagerTabStripViewControlle // MARK: - PagerTabStripViewControllerDataSource - override public func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { + override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { let child_1 = TableChildExampleViewController(style: .Plain, itemInfo: "Table View") let child_2 = ChildExampleViewController(title: "View") let child_3 = TableChildExampleViewController(style: .Grouped, itemInfo: "Table View 2") @@ -66,4 +66,4 @@ public class SegmentedExampleViewController: SegmentedPagerTabStripViewControlle pagerOptions = rand() % 2 == 0 ? pagerOptions.union(.SkipIntermediateViewControllers) : (pagerOptions.remove(.SkipIntermediateViewControllers) ?? pagerOptions) reloadPagerTabStripView() } -} \ No newline at end of file +} diff --git a/Example/Example/TwitterExampleViewController.swift b/Example/Example/TwitterExampleViewController.swift index 0cae389..26c78fa 100644 --- a/Example/Example/TwitterExampleViewController.swift +++ b/Example/Example/TwitterExampleViewController.swift @@ -25,17 +25,17 @@ import Foundation import XLPagerTabStrip -public class TwitterExampleViewController: TwitterPagerTabStripViewController { +class TwitterExampleViewController: TwitterPagerTabStripViewController { var isReload = false - public override func viewDidLoad() { + override func viewDidLoad() { super.viewDidLoad() pagerOptions = pagerOptions.union(.IsProgressiveIndicator) pagerOptions = pagerOptions.union(.IsElasticIndicatorLimit) } - public override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { + override func childViewControllersForPagerTabStripViewController(pagerTabStripController: PagerTabStripViewController) -> [UIViewController] { let child_1 = TableChildExampleViewController(style: .Plain, itemInfo: "TableView") let child_2 = ChildExampleViewController(title: "View")