forked from zelo72/mastodon-ios
fix: split view column state after size class transition not stable issue
This commit is contained in:
parent
1d827e7597
commit
5be6211986
|
@ -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?) {
|
||||
|
|
Loading…
Reference in New Issue