remove public modifier from example project.

This commit is contained in:
Martin Barreto 2016-01-28 15:02:12 -03:00
parent 9018f78c81
commit bcd395c2a6
9 changed files with 34 additions and 34 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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
}

View File

@ -24,7 +24,7 @@
import UIKit
internal class PostCell: UITableViewCell {
class PostCell: UITableViewCell {
@IBOutlet weak var userImage: UIImageView!

View File

@ -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]

View File

@ -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()
}

View File

@ -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
}
}

View File

@ -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()
}
}
}

View File

@ -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")