Skip to content

Commit

Permalink
Merge pull request #87 from reececomo/alternate-user-interaction
Browse files Browse the repository at this point in the history
#86 disableUserInteraction() on UIScrollView just to prevent scroll
  • Loading branch information
Juanpe authored Aug 6, 2018
2 parents 3c16416 + 8988b22 commit fc22d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Collections/CollectionSkeletonProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ extension CollectionSkeleton where Self: UIScrollView {
var estimatedNumberOfRows: Int { return 0 }
func addDummyDataSource() {}
func removeDummyDataSource(reloadAfter: Bool) {}
func disableUserInteraction() { isUserInteractionEnabled = false }
func enableUserInteraction() { isUserInteractionEnabled = true }
func disableUserInteraction() { isScrollEnabled = false }
func enableUserInteraction() { isScrollEnabled = true }
}

0 comments on commit fc22d58

Please sign in to comment.