Skip to content

Commit 8746d7f

Browse files
committed
~ List for live terminal output
1 parent 175e3e6 commit 8746d7f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

Cork/Views/Installation/Sub-Views/Misc Views/Live Code Output.swift

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,21 @@ struct LiveTerminalOutputView: View
2727
{
2828
ScrollViewReader
2929
{ proxy in
30-
ScrollView
30+
List
3131
{
32-
VStack(alignment: .leading, spacing: 5)
33-
{
34-
ForEach(lineArray)
35-
{ line in
36-
Text(line.line)
37-
.id(line.id)
38-
}
32+
ForEach(lineArray)
33+
{ line in
34+
Text(line.line)
35+
.id(line.id)
3936
}
4037
}
38+
.frame(minHeight: 200)
39+
.listStyle(.bordered)
4140
.onChange(of: lineArray)
4241
{ _ in
4342
proxy.scrollTo(lineArray.last?.id, anchor: .bottom)
4443
}
45-
.frame(width: 300, height: 200)
46-
.fixedSize()
47-
.border(Color(nsColor: NSColor.separatorColor))
44+
4845
}
4946
// }
5047
}

0 commit comments

Comments
 (0)