We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175e3e6 commit 8746d7fCopy full SHA for 8746d7f
Cork/Views/Installation/Sub-Views/Misc Views/Live Code Output.swift
@@ -27,24 +27,21 @@ struct LiveTerminalOutputView: View
27
{
28
ScrollViewReader
29
{ proxy in
30
- ScrollView
+ List
31
32
- VStack(alignment: .leading, spacing: 5)
33
- {
34
- ForEach(lineArray)
35
- { line in
36
- Text(line.line)
37
- .id(line.id)
38
- }
+ ForEach(lineArray)
+ { line in
+ Text(line.line)
+ .id(line.id)
39
}
40
+ .frame(minHeight: 200)
+ .listStyle(.bordered)
41
.onChange(of: lineArray)
42
{ _ in
43
proxy.scrollTo(lineArray.last?.id, anchor: .bottom)
44
45
- .frame(width: 300, height: 200)
46
- .fixedSize()
47
- .border(Color(nsColor: NSColor.separatorColor))
+
48
49
// }
50
0 commit comments