Input node improvements

This commit is contained in:
Ali
2022-06-28 22:54:05 +02:00
parent 575605f4d0
commit 131be5aaab
51 changed files with 2586 additions and 1363 deletions

View File

@@ -532,14 +532,13 @@ public final class PagerComponent<ChildEnvironmentType: Equatable>: Component {
}
var removedIds: [AnyHashable] = []
for (id, contentView) in self.contentViews {
for (id, _) in self.contentViews {
if !validIds.contains(id) {
removedIds.append(id)
contentView.view.removeFromSuperview()
}
}
for id in removedIds {
self.contentViews.removeValue(forKey: id)
self.contentViews.removeValue(forKey: id)?.view.removeFromSuperview()
}
if let panelStateUpdated = component.panelStateUpdated {