File tree Expand file tree Collapse file tree 1 file changed +19
-17
lines changed
CodeEdit/Features/SplitView Expand file tree Collapse file tree 1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -24,24 +24,26 @@ struct EditorView: View {
24
24
}
25
25
26
26
var body : some View {
27
- switch tabgroup {
28
- case . one( let detailTabGroup) :
29
- WorkspaceTabGroupView ( tabgroup: detailTabGroup, focus: $focus)
30
- . transformEnvironment ( \. edgeInsets) { insets in
31
- switch isAtEdge {
32
- case . all:
33
- insets. top += toolbarHeight
34
- insets. bottom += StatusBarView . height + 5
35
- case . top:
36
- insets. top += toolbarHeight
37
- case . bottom:
38
- insets. bottom += StatusBarView . height + 5
39
- default :
40
- return
27
+ VStack {
28
+ switch tabgroup {
29
+ case . one( let detailTabGroup) :
30
+ WorkspaceTabGroupView ( tabgroup: detailTabGroup, focus: $focus)
31
+ . transformEnvironment ( \. edgeInsets) { insets in
32
+ switch isAtEdge {
33
+ case . all:
34
+ insets. top += toolbarHeight
35
+ insets. bottom += StatusBarView . height + 5
36
+ case . top:
37
+ insets. top += toolbarHeight
38
+ case . bottom:
39
+ insets. bottom += StatusBarView . height + 5
40
+ default :
41
+ return
42
+ }
41
43
}
42
- }
43
- case . vertical ( let data) , . horizontal ( let data ) :
44
- SubEditorView ( data : data , focus : $focus )
44
+ case . vertical ( let data ) , . horizontal ( let data ) :
45
+ SubEditorView ( data : data, focus : $focus )
46
+ }
45
47
}
46
48
}
47
49
You can’t perform that action at this time.
0 commit comments