Skip to content

Commit

Permalink
Change public access levels to open
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed May 14, 2017
1 parent bb3e9a4 commit 9ac2084
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/ScrollingNavigationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ open class ScrollingNavigationController: UINavigationController, UIGestureRecog
- parameter animated: If true the scrolling is animated. Defaults to `true`
- parameter duration: Optional animation duration. Defaults to 0.1
*/
public func hideNavbar(animated: Bool = true, duration: TimeInterval = 0.1) {
open func hideNavbar(animated: Bool = true, duration: TimeInterval = 0.1) {
guard let _ = self.scrollableView, let visibleViewController = self.visibleViewController else { return }

if state == .expanded {
Expand All @@ -147,7 +147,7 @@ open class ScrollingNavigationController: UINavigationController, UIGestureRecog
- parameter animated: If true the scrolling is animated. Defaults to `true`
- parameter duration: Optional animation duration. Defaults to 0.1
*/
public func showNavbar(animated: Bool = true, duration: TimeInterval = 0.1) {
open func showNavbar(animated: Bool = true, duration: TimeInterval = 0.1) {
guard let _ = self.scrollableView, let visibleViewController = self.visibleViewController else { return }

if state == .collapsed {
Expand Down Expand Up @@ -182,7 +182,7 @@ open class ScrollingNavigationController: UINavigationController, UIGestureRecog
- parameter showingNavbar: If true the navbar is show, otherwise it remains in its current state. Defaults to `true`
*/
public func stopFollowingScrollView(showingNavbar: Bool = true) {
open func stopFollowingScrollView(showingNavbar: Bool = true) {
if showingNavbar {
showNavbar(animated: true)
}
Expand Down Expand Up @@ -446,14 +446,14 @@ open class ScrollingNavigationController: UINavigationController, UIGestureRecog
/**
UIGestureRecognizerDelegate function. Enables the scrolling of both the content and the navigation bar
*/
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
open func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}

/**
UIGestureRecognizerDelegate function. Only scrolls the navigation bar with the content when `scrollingEnabled` is true
*/
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
open func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
return scrollingEnabled
}

Expand Down

0 comments on commit 9ac2084

Please sign in to comment.