   public override func layoutSubviews() {
     super.layoutSubviews()
 
-    if let noticeView = currentNoticeView {
+    if let (noticeView, _) = currentNotice {
       bringSubviewToFront(noticeView)
     }
   }
 }
 
 public struct NoticeViewStyle {
+
   public var backgroundColor: UIColor
   public var textColor: UIColor
 


    if animated {
      CATransaction.begin()
      CATransaction.setCompletionBlock({
        completion?()
      })
      let animation = CABasicAnimation(keyPath: "transform.translation.y")
      animation.duration = 0.25
      animation.fromValue = -view.frame.size.height
      animation.toValue = 0
      animation.removedOnCompletion = false
      animation.fillMode = kCAFillModeForwards

      let when = dispatch_time(DISPATCH_TIME_NOW, Int64(duration * Double(NSEC_PER_SEC)))
      dispatch_after(when, dispatch_get_main_queue()) { [weak self] in
        // only dismiss when we it's the same notice
        if self?.currentNotice?.view === view {
          self?.dismissCurrentNotice()
        }
      }
