mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
b369ee0cca
close AF-1663, AF-1756 - new global `ModalConfigContext` - new logic to judge whether inside modal - render `✕` for PageHeader back if inside modal - only enable `NavigationGesture` when there is `<` in PageHeader
18 lines
503 B
Swift
18 lines
503 B
Swift
import UIKit
|
|
import Capacitor
|
|
|
|
class AFFiNEViewController: CAPBridgeViewController {
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
// disable by default, enable manually when there is a "back" button in page-header
|
|
webView?.allowsBackForwardNavigationGestures = false
|
|
}
|
|
|
|
override func capacitorDidLoad() {
|
|
bridge?.registerPluginInstance(CookiePlugin())
|
|
bridge?.registerPluginInstance(HashcashPlugin())
|
|
bridge?.registerPluginInstance(NavigationGesturePlugin())
|
|
}
|
|
}
|