Feature: make Reader use center window
This commit is contained in:
@@ -55,7 +55,13 @@ class ReaderViewController: UIViewController
|
||||
|
||||
@objc
|
||||
private func didTapDoneButton(_ sender: Any?) {
|
||||
dismiss(animated: true, completion: nil)
|
||||
if traitCollection.userInterfaceIdiom == .phone {
|
||||
dismiss(animated: true, completion: nil)
|
||||
} else {
|
||||
if let sceneSession = view.window?.windowScene?.session {
|
||||
UIApplication.shared.requestSceneSessionDestruction(sceneSession, options: nil, errorHandler: nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@objc
|
||||
|
||||
Reference in New Issue
Block a user