EZSwipeController
EZSwipeController copied to clipboard
The Navigation Bar overlaps the status bar by default
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:
As you can see the either the navigation bar is too small or it's overlapping with the status bar.
Any update on this? I'm having the same issue
No update on this? I'm experiencing the same thing. It only occurred after I updated my pods
yup happening for me too 👎
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.
Any update on this? @Kleemann : changing 44 doesn't fix this issue on ios11. I have already tried that. Any other workaround/suggestion?
Same problem here. Did anybody find a solution?