mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Hide reactions on animateOut
This commit is contained in:
parent
ff9157fef4
commit
1556dd7bf3
@ -1383,6 +1383,19 @@ public final class StoryItemSetContainerComponent: Component {
|
|||||||
captionItemView.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.3, removeOnCompletion: false)
|
captionItemView.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.3, removeOnCompletion: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let reactionContextNode = self.reactionContextNode {
|
||||||
|
self.reactionContextNode = nil
|
||||||
|
reactionContextNode.layer.animateAlpha(from: reactionContextNode.alpha, to: 0.0, duration: 0.3, removeOnCompletion: false, completion: { [weak reactionContextNode] _ in
|
||||||
|
reactionContextNode?.view.removeFromSuperview()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
if let disappearingReactionContextNode = self.disappearingReactionContextNode {
|
||||||
|
self.disappearingReactionContextNode = nil
|
||||||
|
disappearingReactionContextNode.layer.animateAlpha(from: disappearingReactionContextNode.alpha, to: 0.0, duration: 0.3, removeOnCompletion: false, completion: { [weak disappearingReactionContextNode] _ in
|
||||||
|
disappearingReactionContextNode?.view.removeFromSuperview()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if let component = self.component, let sourceView = transitionOut.destinationView, let contentContainerView = self.visibleItems[component.slice.item.storyItem.id]?.contentContainerView {
|
if let component = self.component, let sourceView = transitionOut.destinationView, let contentContainerView = self.visibleItems[component.slice.item.storyItem.id]?.contentContainerView {
|
||||||
let sourceLocalFrame = sourceView.convert(transitionOut.destinationRect, to: self)
|
let sourceLocalFrame = sourceView.convert(transitionOut.destinationRect, to: self)
|
||||||
let innerSourceLocalFrame = CGRect(origin: CGPoint(x: sourceLocalFrame.minX - contentContainerView.frame.minX, y: sourceLocalFrame.minY - contentContainerView.frame.minY), size: sourceLocalFrame.size)
|
let innerSourceLocalFrame = CGRect(origin: CGPoint(x: sourceLocalFrame.minX - contentContainerView.frame.minX, y: sourceLocalFrame.minY - contentContainerView.frame.minY), size: sourceLocalFrame.size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user