EZSwipeController icon indicating copy to clipboard operation
EZSwipeController copied to clipboard

The Navigation Bar overlaps the status bar by default

Open mrigdon-zz opened this issue 7 years ago • 6 comments

Here's my code:

extension SwipeController: EZSwipeControllerDataSource {
    func viewControllerData() -> [UIViewController] {
        let redVC = UIViewController()
        redVC.view.backgroundColor = .red
        
        let blueVC = UIViewController()
        blueVC.view.backgroundColor = .blue
        
        let greenVC = UIViewController()
        greenVC.view.backgroundColor = .green
        
        return [redVC, blueVC, greenVC]
    }
    
    func titlesForPages() -> [String] {
        return ["red", "blue", "green"]
    }
}

class SwipeController: EZSwipeController {
    
    // MARK: - Lifecycle methods

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .yellow
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
    override func setupView() {
        datasource = self
    }

}

pretty much exactly how it's done in the readme, but here's what I get:

simulator screen shot mar 1 2017 12 01 46 pm

As you can see the either the navigation bar is too small or it's overlapping with the status bar.

mrigdon-zz avatar Mar 01 '17 20:03 mrigdon-zz

Any update on this? I'm having the same issue

patthehuman avatar Mar 15 '17 06:03 patthehuman

No update on this? I'm experiencing the same thing. It only occurred after I updated my pods

darraghmckay avatar Apr 11 '17 21:04 darraghmckay

yup happening for me too 👎

mzrzvi avatar Jun 12 '17 17:06 mzrzvi

There is a property called public static let navigationBarHeight: CGFloat = 44

You can change that if you installed the library manually or maybe by subclassing EZSwipeController.

Kleemann avatar Jun 13 '17 09:06 Kleemann

Any update on this? @Kleemann : changing 44 doesn't fix this issue on ios11. I have already tried that. Any other workaround/suggestion?

lohithkorp avatar Nov 13 '17 06:11 lohithkorp

Same problem here. Did anybody find a solution?

sarbogast avatar Apr 13 '19 18:04 sarbogast