         isStopAnimatingCalled = false
         showTimer = scheduledTimer(data.displayTimeThreshold, selector: #selector(showTimerFired(_:)), data: data)
     }
-    
+
     /**
      Remove UI blocker.
      */

    /// - Parameter message: message displayed under activity indicator view.
    public final func setMessage(_ message: String?) {
        activityLabel.text = message
        
        guard let message = message, !message.isEmpty else {
            activityLabel.frame.size = CGSize.zero;
            return
        }
        let screenSize = UIScreen.main.bounds
        
        activityLabel.frame.size = NSString(string: message).boundingRect(
            with: CGSize(width: screenSize.width - 16.0, height: CGFloat.greatestFiniteMagnitude),
            options: .usesLineFragmentOrigin,
            attributes: [NSFontAttributeName: activityLabel.font],
            context: nil).size
        
        activityLabel.center = CGPoint(
            x: screenSize.width / 2.0,
            y: (screenSize.height / 2.0) + activitySize.height + (activityLabel.frame.height / 2) + 8.0)
    }
  
    // MARK: - Timer events
  
    @objc private func showTimerFired(_ timer: Timer) {
        guard let activityData = timer.userInfo as? ActivityData else { return }
        show(with: activityData)
    }
    
    @objc private func hideTimerFired(_ timer: Timer) {
        hideTimer?.invalidate()
        hideTimer = nil

    private var hideTimer: Timer?
    private var isStopAnimatingCalled = false
    private let restorationIdentifier = "NVActivityIndicatorViewContainer"

    private var activitySize = NVActivityIndicatorView.DEFAULT_BLOCKER_SIZE

    private let activityLabel: UILabel = {
        let activityLabel = UILabel()

        activityLabel.textAlignment = .center
        activityLabel.numberOfLines = 0
        activityLabel.translatesAutoresizingMaskIntoConstraints = false

        return activityLabel
    }()

    /// Shared instance of `NVActivityIndicatorPresenter`.
    public static let sharedInstance = NVActivityIndicatorPresenter()

    private init() { }

    // MARK: - Public interface

    /**
     Display UI blocker.

     - parameter data: Information package used to display UI blocker.
     */
    public final func startAnimating(_ data: ActivityData) {
