Skip to content

Commit

Permalink
allow UIScrollViews to accept button taps
Browse files Browse the repository at this point in the history
  • Loading branch information
reececomo committed Aug 6, 2018
1 parent 0eff052 commit 6496721
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Sources/Collections/CollectionSkeletonProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ 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 6496721

Please sign in to comment.