pull-to-refresh
pull-to-refresh copied to clipboard
Type 'UIScollView' does not conform to protocol 'ESExtensionsProvider'
我用源码会出现这个错误 用framework 就不会 我猜应该与UIScollView某个扩展冲突了 不知道楼主知道原因么?
还有一个严重的问题 用 isIgnoreObserving变量判断状态并不准确 导致previousOffset刷新动画复原会受影响 添加print测试 可以打印出来
override open func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
if context == &ESRefreshComponent.context {
guard isUserInteractionEnabled == true && isHidden == false else {
return
}
if keyPath == ESRefreshComponent.contentSizeKeyPath {
if isIgnoreObserving == false {
sizeChangeAction(object: object as AnyObject?, change: change)
}
} else if keyPath == ESRefreshComponent.offsetKeyPath {
if isIgnoreObserving == false {
offsetChangeAction(object: object as AnyObject?, change: change)
if isIgnoreObserving {
print("qqqqqq")
}
}
}
} else {
}
}
i am getting the same issue. any solution?