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
/// Combine wrapper for `scrollViewWillBeginZooming(_:with:)`
var willBeginZoomingPublisher: AnyPublisher<UIView?, Never> {
let selector = #selector(UIScrollViewDelegate.scrollViewWillBeginZooming(_:with:))
return delegateProxy.interceptSelectorPublisher(selector)
.map { $0[1] as! UIView? } // ❌ Cannot downcast from 'Any' to a more optional type 'UIView?'
.eraseToAnyPublisher()
}
/// Combine wrapper for `scrollViewDidEndZooming(_:with:atScale:)`
var didEndZooming: AnyPublisher<(view: UIView?, scale: CGFloat), Never> {
let selector = #selector(UIScrollViewDelegate.scrollViewDidEndZooming(_:with:atScale:))
return delegateProxy.interceptSelectorPublisher(selector)
.map { ($0[1] as! UIView?, $0[2] as! CGFloat) } // ❌ Cannot downcast from 'Any' to a more optional type 'UIView?'
.eraseToAnyPublisher()
}
CombineCocoa 0.4.0
Xcode 12.4
Swift 5.3.2
The text was updated successfully, but these errors were encountered:
I have build error for this publishers:
CombineCocoa 0.4.0
Xcode 12.4
Swift 5.3.2
The text was updated successfully, but these errors were encountered: