<NME> UIView.swift
<BEF> ADDFILE
<MSG> Merge pull request #46 from mcudich/rename

Move all the things
<DFF> @@ -0,0 +1,46 @@
+//
+//  UIView.swift
+//  TemplateKit
+//
+//  Created by Matias Cudich on 9/9/16.
+//  Copyright © 2016 Matias Cudich. All rights reserved.
+//
+
+import Foundation
+import SwiftBox
+
+extension UIView: Layoutable {
+  public func applyLayout(layout: SwiftBox.Layout) {
+    Layout.apply(layout, to: self)
+  }
+}
+
+extension UIView: View {}
+
+extension NativeView where Self: UIView {
+  public var children: [View]? {
+    set {
+    }
+    get { return nil }
+  }
+
+  func applyCommonProperties(properties: [String: Any]) {
+    applyBackgroundColor(properties)
+    applyTapHandler(properties)
+  }
+
+  private func applyBackgroundColor(_ properties: [String: Any]) {
+    guard let backgroundColor: UIColor = get("backgroundColor") else {
+      return
+    }
+    self.backgroundColor = backgroundColor
+  }
+
+  private func applyTapHandler(_ properties: [String: Any]) {
+    guard let onTap: Selector = get("onTap") else {
+      return
+    }
+    let recognizer = UITapGestureRecognizer(target: eventTarget, action: onTap)
+    addGestureRecognizer(recognizer)
+  }
+}

Merge pull request #46 from mcudich/rename