//
//  ChildViewController.swift
//  Pageboy-Example
//
//  Created by Merrick Sapsford on 13/02/2017.
//  Copyright © 2017 Merrick Sapsford. All rights reserved.
//

import UIKit

class ChildViewController: UIViewController {

    @IBOutlet weak var label: UILabel!
    @IBOutlet weak var promptLabel: UILabel!

    var index: Int?

    override var preferredStatusBarStyle: UIStatusBarStyle {
        if index == 1 {
            return .lightContent
        }
        return .default
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        if let index = self.index {
            self.label.text = "Page " + String(index)
            self.promptLabel.isHidden = index != 1
        }
    }
}

//
//  ChildViewController.swift
//  Pageboy-Example
//
//  Created by Merrick Sapsford on 13/02/2017.
//  Copyright © 2017 Merrick Sapsford. All rights reserved.
//

import UIKit

class ChildViewController: UIViewController {

    @IBOutlet weak var label: UILabel!
    @IBOutlet weak var promptLabel: UILabel!

    var index: Int?

    override var preferredStatusBarStyle: UIStatusBarStyle {
        return .lightContent
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        if let index = self.index {
            self.label.text = "Page " + String(index)
            self.promptLabel.isHidden = index != 1
        }
    }
}

Fix example status bar style
Fix example status bar style
