Add support for tvOS

This commit is contained in:
世界
2023-07-29 09:44:31 +08:00
parent 5a8f3a770f
commit bb0385f53c
63 changed files with 1542 additions and 389 deletions
-8
View File
@@ -43,14 +43,6 @@ public struct MainView: View {
}
#endif
.alertBinding($alert)
.onAppear {
ServiceNotification.setServiceNotificationListener { notification in
alert = Alert(title: Text(notification.title), message: Text(notification.body))
}
}
.onDisappear {
ServiceNotification.removeServiceNotificationListener()
}
.toolbar {
ToolbarItem(placement: .navigation) {
StartStopButton()