         case NSTouchBarItemIdentifier.dinoItem:
             let customViewItem = NSCustomTouchBarItem(identifier: identifier)
             customViewItem.view = dinoView
+            DispatchQueue.main.asyncAfter(deadline: .now() + 0.1, execute: {
+                // Setup dinoView Constraints on TouchBar View Load
+                self.setupDinoView()
+            })
             return customViewItem
         default:
             return nil


}

extension NSTouchBarCustomizationIdentifier {
    static let dinoBar = NSTouchBarCustomizationIdentifier("com.yuhuili.Dino.DinoBar")
}

extension NSTouchBarItemIdentifier {
    static let dinoItem = NSTouchBarItemIdentifier("com.yuhuili.Dino.DinoBar.main")
}

@available(OSX 10.12.1, *)
extension ViewController: NSTouchBarDelegate {
    override func makeTouchBar() -> NSTouchBar? {
        // 1
        let touchBar = NSTouchBar()
        touchBar.delegate = self
        // 2
        touchBar.customizationIdentifier = .dinoBar
        // 3
        touchBar.defaultItemIdentifiers = [.dinoItem]
        // 4
        touchBar.customizationAllowedItemIdentifiers = [.dinoItem]
        return touchBar
    }

    }
}

extension NSTouchBarCustomizationIdentifier {
    static let dinoBar = NSTouchBarCustomizationIdentifier("com.yuhuili.Dino.DinoBar")
}

extension NSTouchBarItemIdentifier {
    static let dinoItem = NSTouchBarItemIdentifier("com.yuhuili.Dino.DinoBar.main")
}



