     }
     self.followers = followers
     self.scrollSpeedFactor = CGFloat(scrollSpeedFactor)
+    self.collapseDirectionFactor = CGFloat(collapseDirection.rawValue)
   }
 
   /**

  var scrollableView: UIView?
  var lastContentOffset = CGFloat(0.0)
  var scrollSpeedFactor: CGFloat = 1
  var previousState: NavigationBarState = .expanded // Used to mark the state before the app goes in background

  /**

}

/**
 The direction of scrolling that the navigation bar should be collapsed.
 The raw value determines the sign of content offset depending of collapse direction.
 
 - scrollUp: scrolling up direction
 - scrollDown: scrolling down direction
 */
@objc public enum NavigationBarCollapseDirection: Int {
  case scrollUp = -1
  case scrollDown = 1
}

/**
 A custom `UINavigationController` that enables the scrolling of the navigation bar alongside the
 scrolling of an observed content view
 */
