В этом случае я пытаюсь интегрировать fast_actions.
Дело в том, что мы используем настройку SceneDelegate
Код: Выделить всё
class SceneDelegate: UIResponder
Код: Выделить всё
extension SceneDelegate: UIWindowSceneDelegate.
Я нашел решение, которое является взломанным и не принято нашей командой:
Код: Выделить всё
func scene(_ scene: UIScene, willConnectTo _: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
..
..
..
if let shortcutItem = connectionOptions.shortcutItem {
if let delegate = UIApplication.shared.delegate as? FlutterAppDelegate {
_ = delegate.application(UIApplication.shared,
didFinishLaunchingWithOptions: [UIApplication.LaunchOptionsKey.shortcutItem: shortcutItem])
}
}
}
and
func windowScene(_ windowScene: UIWindowScene,
performActionFor shortcutItem: UIApplicationShortcutItem,
completionHandler: @escaping (Bool) -> Void) {
if let delegate = UIApplication.shared.delegate as? FlutterAppDelegate {
_ = delegate.application(UIApplication.shared,
performActionFor: shortcutItem,
completionHandler: completionHandler)
}
}
А еще идеи?
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/798 ... elegate-on
Мобильная версия