 import UIKit
 import NotificationCenter
 import CountdownKit
+import ReactiveCocoa
 
 @objc(TodayViewController)
 class TodayViewController: UIViewController {

        NSLayoutConstraint(item: ageLabel, attribute: .CenterX, relatedBy: .Equal, toItem: view, attribute: .CenterX, multiplier: 1, constant: 0).active = true
        NSLayoutConstraint(item: ageLabel, attribute: .CenterY, relatedBy: .Equal, toItem: view, attribute: .CenterY, multiplier: 1, constant: 0).active = true

        if let age = viewModel.age.value {
            ageLabel.text = String(format: "%.12f", age)
        } else {
            ageLabel.text = "Please open Countdown and set birthday"
        }
    }
}


    //MARK: UIViewController

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        viewModel.active.value = true
    }

    override func viewDidDisappear(animated: Bool) {
        super.viewDidDisappear(animated)
        viewModel.active.value = false
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        preferredContentSize = CGSize(width: 0, height: 50)
