mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-02-02 18:36:44 +01:00
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) {
|
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
|
||||||
super.viewWillTransition(to: size, with: coordinator)
|
super.viewWillTransition(to: size, with: coordinator)
|
||||||
|
|
||||||
coordinator.animate { [weak self] context in
|
self.updateBehavior(size: size)
|
||||||
guard let self = self else { return }
|
|
||||||
self.updateBehavior(size: size)
|
|
||||||
} completion: { context in
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
|
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user