Skip to content

Commit 0b112ae

Browse files
author
Isaac
committed
Fix animation
1 parent 1bb139f commit 0b112ae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

submodules/GalleryUI/Sources/GalleryControllerNode.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ open class GalleryControllerNode: ASDisplayNode, ASScrollViewDelegate, ASGesture
333333
}
334334
let _ = titleView.updateLayout(availableSize: titleFrame.size, transition: .immediate)
335335
transition.updateFrame(view: titleView, frame: titleFrame)
336-
ComponentTransition(transition).setAlpha(view: titleView, alpha: self.areControlsHidden ? 0.0 : 1.0)
336+
ComponentTransition(transition).animateView {
337+
titleView.alpha = self.areControlsHidden ? 0.0 : 1.0
338+
}
337339
}
338340
}
339341

0 commit comments

Comments
 (0)