Skip to content

Commit bd0ba38

Browse files
author
JWI
committed
it's menu lol
1 parent e213f15 commit bd0ba38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/SwiftCrossUI/_App.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ class _App<AppRoot: App> {
8787
environment: self.environment
8888
)
8989

90-
//self.backend.setApplicationMenu(body.commands.resolve())
90+
if #available(iOS 13.0, *) {
91+
self.backend.setApplicationMenu(body.commands.resolve())
92+
}
9193
}
9294
self.cancellables.append(cancellable)
9395
}
@@ -107,7 +109,9 @@ class _App<AppRoot: App> {
107109
}
108110

109111
// Update application-wide menu
110-
//self.backend.setApplicationMenu(body.commands.resolve())
112+
if #available(iOS 13.0, *) {
113+
self.backend.setApplicationMenu(body.commands.resolve())
114+
}
111115

112116
rootNode.update(
113117
nil,

0 commit comments

Comments
 (0)