Update Tests/main.swift

This commit is contained in:
Zaph 2024-10-18 16:59:52 +02:00
parent 4b31e33292
commit 571996fbec

View File

@ -3,10 +3,9 @@ import WebView
@main @main
struct Test: App { struct Test: App {
let id = "xyz.zaph.webview" var app = AdwaitaApp(id:"xyz.zaph.webview")
var app: AdwaitaApp!
@State private var url: String = "https://github.com/AparokshaUI/adwaita-swift" @State private var url: String = "https://git.aparoksha.dev/aparoksha/adwaita-swift"
var scene: Scene { var scene: Scene {
Window(id: "main") { window in Window(id: "main") { window in
@ -43,6 +42,7 @@ struct ToolbarView: View {
MenuSection { MenuSection {
MenuButton("About Me", window: false) { MenuButton("About Me", window: false) {
about = true about = true
} }
} }
} }
@ -54,8 +54,8 @@ struct ToolbarView: View {
developer: "zaph", developer: "zaph",
version: "dev", version: "dev",
icon: .custom(name: "xyz.zaph.webview"), icon: .custom(name: "xyz.zaph.webview"),
website: .init(string: "https://github.com/Zaphik/AdwaitaWebViewSwift")!, website: .init(string: "https://git.aparoksha.dev/Zaph/AdwaitaWebViewSwift")!,
issues: .init(string: "https://github.com/Zaphik/AdwaitaWebViewSwift")! issues: .init(string: "https://git.aparoksha.dev/Zaph/AdwaitaWebViewSwift")!
) )
} }