 import UIKit
 import Neon
 
-class CurrentTimeIndicator: UIView {
+@objc class CurrentTimeIndicator: UIView {
     
   let padding : CGFloat = 5
   var leftInset: CGFloat = 53

    timeLabel.baselineAdjustment = .alignCenters
    
    updateStyle(style)
  }
    
  func updateDate() {

  public var calendar: Calendar = Calendar.autoupdatingCurrent {
    didSet {
      updateDate()
    }
  }

  private var timer: Timer?
  @objc private func timerDidFire(_ sender: Timer) {
    let currentDate = Date()
    let currentMinute = calendar.component(.minute, from: currentDate)
    let displayedMinute = calendar.component(.minute, from: date)
    if currentMinute != displayedMinute {
      date = currentDate
    }
  }

