Initial work on background visualization

This commit is contained in:
Charles Magahern
2015-12-30 02:51:22 -08:00
parent 58529e96b9
commit 7cf2b3b38d
22 changed files with 762 additions and 129 deletions
@@ -0,0 +1,36 @@
//
// MainViewController.swift
// XIONControlPanel
//
// Created by Charles Magahern on 12/29/15.
// Copyright © 2015 XION. All rights reserved.
//
import UIKit
class MainViewController: UIViewController {
private var _backgroundController: BackgroundViewController = BackgroundViewController()
override func viewDidLoad()
{
super.viewDidLoad()
self.view.backgroundColor = UIColor.blackColor()
self.addChildViewController(_backgroundController)
self.view.addSubview(_backgroundController.view)
}
override func prefersStatusBarHidden() -> Bool
{
return true
}
override func viewDidLayoutSubviews()
{
super.viewDidLayoutSubviews()
let bounds = self.view.bounds
_backgroundController.view.frame = bounds
}
}