fix: split view column state after size class transition not stable issue

This commit is contained in:
CMK 2022-02-18 18:00:34 +08:00
parent 1d827e7597
commit 5be6211986
1 changed files with 1 additions and 6 deletions

View File

@ -101,12 +101,7 @@ extension RootSplitViewController {
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransition(to: size, with: coordinator)
coordinator.animate { [weak self] context in
guard let self = self else { return }
self.updateBehavior(size: size)
} completion: { context in
// do nothing
}
self.updateBehavior(size: size)
}
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {