File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,26 +23,23 @@ struct MainView: View {
2323 }
2424
2525 var body : some View {
26- content
27- . onAppear {
28- coordinator. mainViewModel. send ( . onAppear)
29- }
30- . alert (
31- coordinator. mainViewModel. state. alertTitle,
32- isPresented: mainAlertPresented
33- ) {
34- Button ( String ( localized: " common_close " ) , role: . cancel) { }
35- } message: {
36- Text ( coordinator. mainViewModel. state. alertMessage)
26+ Group {
27+ if isCompactLayout {
28+ tabView
29+ } else {
30+ sidebarView
3731 }
38- }
39-
40- @ViewBuilder
41- private var content : some View {
42- if isCompactLayout {
43- tabView
44- } else {
45- sidebarView
32+ }
33+ . onAppear {
34+ coordinator. mainViewModel. send ( . onAppear)
35+ }
36+ . alert (
37+ coordinator. mainViewModel. state. alertTitle,
38+ isPresented: mainAlertPresented
39+ ) {
40+ Button ( String ( localized: " common_close " ) , role: . cancel) { }
41+ } message: {
42+ Text ( coordinator. mainViewModel. state. alertMessage)
4643 }
4744 }
4845
You can’t perform that action at this time.
0 commit comments