Skip to content

Commit

Permalink
Set status bar to Home Assistant blue
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Apr 21, 2017
1 parent 0869caa commit 9091df6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion HomeAssistant/Views/WebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ class WebViewController: UIViewController, WKNavigationDelegate, WKUIDelegate {
super.viewDidLoad()

let screenSize: CGRect = UIScreen.main.bounds
let myView = UIView(frame: CGRect(x: 0, y: 0,
let myView = UIView(frame: CGRect(x: 0, y: 10,
width: screenSize.width,
height: screenSize.height-self.navigationController!.toolbar.frame.height))

var statusBarView: UIView = UIView(frame: CGRect(x: 0.0, y: 0.0, width: UIScreen.main.bounds.width, height: 20.0))
statusBarView.backgroundColor = UIColor(red:0.01, green:0.66, blue:0.96, alpha:1.0)
view.addSubview(statusBarView)

self.view.addSubview(myView)

let config = WKWebViewConfiguration()
Expand Down

0 comments on commit 9091df6

Please sign in to comment.