Fix iPad split view (#8199)

* Fix iPad split view

* remove unused type def
This commit is contained in:
Elias Nahum 2024-09-16 10:49:46 +08:00 committed by GitHub
parent 20e0638a1f
commit 991cecdeb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 10 deletions

View file

@ -5,9 +5,10 @@ import React
@objc public weak var delegate: RNUtilsDelegate? = nil
deinit {
NotificationCenter.default.removeObserver(self,
name: NSNotification.Name.RCTUserInterfaceStyleDidChange,
object: nil)
DispatchQueue.main.async {
guard let w = UIApplication.shared.delegate?.window, let window = w else { return }
window.removeObserver(self, forKeyPath: "frame")
}
}
func getSharedDirectory() -> URL? {

View file

@ -1,7 +0,0 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
type SplitViewResult = {
isSplitView: boolean;
isTablet: boolean;
}