struct MyTerminalView: View {
var body: some View {
Text("Hello, world!")
}
}
Application(rootView: MyTerminalView()).start()
4. Build and run with Xcode
=========
Result:
<img width="1129" alt="Снимок экрана 2024-10-29 в 08 45 30" src="https://github.com/user-attachments/assets/f9839b1e-98df-46d6-a4e9-669b672c9012">
<img width="769" alt="Снимок экрана 2024-10-29 в 08 47 16" src="https://github.com/user-attachments/assets/381dddac-f217-4c01-868f-76f6f9c04d77">
=========
P.s.: Work when run by hands in terminal :)
struct MyTerminalView: View { var body: some View { Text("Hello, world!") } }
Application(rootView: MyTerminalView()).start()