You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are valid cases to need to implement UIScrollViewDelegate. Unfortunately, UICollectionViewDelegate inherits from UIScrollViewDelegate. (Such a terrible design.) This means clients currently have no way to implement UIScrollViewDelegate methods, because CollectionViewDriver is the collection view's delegate. If clients steal the delegate, then Bad Things™ happen.
Todo:
Allow clients to set a weak var scrollViewDelegate: UIScrollViewDelegate? on CollectionViewDriver
Implement the UIScrollViewDelegate methods in CollectionViewDriver and forward them to this delegate
The text was updated successfully, but these errors were encountered:
There are valid cases to need to implement
UIScrollViewDelegate
. Unfortunately,UICollectionViewDelegate
inherits fromUIScrollViewDelegate
. (Such a terrible design.) This means clients currently have no way to implementUIScrollViewDelegate
methods, becauseCollectionViewDriver
is the collection view's delegate. If clients steal the delegate, then Bad Things™ happen.Todo:
weak var scrollViewDelegate: UIScrollViewDelegate?
onCollectionViewDriver
UIScrollViewDelegate
methods inCollectionViewDriver
and forward them to this delegateThe text was updated successfully, but these errors were encountered: