   }
 
   public func hide() {
-    let finalOrigin = view.frame.origin.y - Dimensions.height
+    let finalOrigin = view.frame.origin.y - titleLabelHeight
     UIView.animateWithDuration(0.2, animations: {
       self.whistleWindow.frame.origin.y = finalOrigin
       }, completion: { _ in


public class WhistleFactory: UIViewController {

  public struct Dimensions {
    public static let height: CGFloat = 20
  }

  public lazy var whistleWindow: UIWindow = UIWindow()

  public lazy var titleLabel: UILabel = {
    let label = UILabel()

    hideTimer.invalidate()

    let initialOrigin = whistleWindow.frame.origin.y
    whistleWindow.frame.origin.y = initialOrigin - titleLabelHeight
    whistleWindow.makeKeyAndVisible()
    UIView.animateWithDuration(0.2, animations: {
      self.whistleWindow.frame.origin.y = initialOrigin
