This commit is contained in:
Ali
2020-02-18 04:47:09 +04:00
parent 33820a1882
commit 22abc4fa6c
7 changed files with 105 additions and 98 deletions

View File

@@ -50,24 +50,9 @@ open class ListViewItemHeaderNode: ASDisplayNode {
self.spring = ListViewItemSpring(stiffness: -280.0, damping: -24.0, mass: 0.85)
}
if seeThrough {
if (layerBacked) {
super.init()
self.setLayerBlock({
return CASeeThroughTracingLayer()
})
} else {
super.init()
self.setViewBlock({
return CASeeThroughTracingView()
})
}
} else {
super.init()
super.init()
self.isLayerBacked = layerBacked
}
self.isLayerBacked = layerBacked
}
open func updateStickDistanceFactor(_ factor: CGFloat, transition: ContainedViewLayoutTransition) {