Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit 59f9cb1

Browse files
authored
Main content view
1 parent c55cfea commit 59f9cb1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

MenuNote.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import SwiftUI
2+
import Foundation
3+
4+
@main
5+
struct MenuNote: App {
6+
@NSApplicationDelegateAdaptor(AppDelegate.self) var delegate
7+
var body: some Scene {
8+
WindowGroup {
9+
AboutView()
10+
}
11+
12+
WindowGroup("Menu Note") {
13+
ChangelogView().handlesExternalEvents(preferring: Set(arrayLiteral: "changelogview"), allowing: Set(arrayLiteral: "*"))
14+
}
15+
.handlesExternalEvents(matching: Set(arrayLiteral: "changelogview"))
16+
17+
WindowGroup("Menu Note") {
18+
AboutView().handlesExternalEvents(preferring: Set(arrayLiteral: "aboutview"), allowing: Set(arrayLiteral: "*"))
19+
}
20+
.handlesExternalEvents(matching: Set(arrayLiteral: "aboutview"))
21+
}
22+
}

0 commit comments

Comments
 (0)