Fatal error: Range requires lowerBound <= upperBound in Example #8

Open
opened 2025-10-14 15:43:15 -06:00 by navan · 0 comments
Owner

Originally created by @iDevPro on 10/29/2024

  1. Create console app in Xcode
  2. Add dependency (SwiftTUI)
  3. Write code in main.swift
import SwiftTUI

struct MyTerminalView: View {
  var body: some View {
    Text("Hello, world!")
  }
}

Application(rootView: MyTerminalView()).start()
  1. Build and run with Xcode
    =========
    Result:
    Снимок экрана 2024-10-29 в 08 45 30
Снимок экрана 2024-10-29 в 08 47 16 =========

P.s.: Work when run by hands in terminal :)

*Originally created by @iDevPro on 10/29/2024* 1. Create console app in Xcode 2. Add dependency (SwiftTUI) 3. Write code in main.swift ```swift import SwiftTUI 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 :)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/SwiftTUI#8
No description provided.