Avatar
そうそう。SwiftPMだと使えてなかったんですよねー
12:34 AM
こういう悲しい感じのworkaroundを使ってた https://github.com/TokamakUI/Tokamak#example-code struct CounterApp: App { var body: some Scene { WindowGroup("Counter Demo") { Counter(count: 5, limit: 15) } } } // @main attribute is not supported in SwiftPM apps. // See https://bugs.swift.org/browse/SR-12683 for more details. CounterApp.main()
SwiftUI-compatible framework for building browser apps with WebAssembly - TokamakUI/Tokamak