Animated emoji improvements

This commit is contained in:
Ali
2022-07-19 03:38:07 +02:00
parent 2a5b45883d
commit c141531c7b
58 changed files with 3446 additions and 1133 deletions

View File

@@ -261,6 +261,10 @@ public final class PagerComponent<ChildEnvironmentType: Equatable, TopPanelEnvir
private var isTopPanelExpanded: Bool = false
public var topPanelComponentView: UIView? {
return self.topPanelView?.componentView
}
override init(frame: CGRect) {
super.init(frame: frame)
@@ -774,6 +778,14 @@ public final class PagerComponent<ChildEnvironmentType: Equatable, TopPanelEnvir
self.component?.isTopPanelExpandedUpdated(self.isTopPanelExpanded, transition)
}
public func collapseTopPanel() {
if !self.isTopPanelExpanded {
return
}
self.isTopPanelExpandedUpdated(isExpanded: false, transition: Transition(animation: .curve(duration: 0.4, curve: .spring)))
}
}
public func makeView() -> View {