File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed
Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 11//
22// HackerNews
3- // Copyright © 2024 Nikita Vasilev. All rights reserved.
3+ // Copyright © 2023 Nikita Vasilev. All rights reserved.
44//
55
66import ComposableArchitecture
@@ -14,23 +14,29 @@ struct HackerNewsApp: App {
1414 // MARK: Properties
1515
1616 @UIApplicationDelegateAdaptor ( AppDelegate . self) private var appDelegate
17- @State private var showConsole = false
17+ #if DEBUG
18+ @State private var showConsole = false
19+ #endif
1820
1921 private let assembly : IApplicationAssembly = ApplicationAssembly ( dependencies: DependenciesAssembly ( ) )
2022
2123 // MARK: View
2224
2325 var body : some Scene {
2426 WindowGroup {
25- self . assembly. assemble ( )
26- . sheet ( isPresented: $showConsole) {
27- NavigationView {
28- ConsoleView ( )
27+ #if DEBUG
28+ assembly. assemble ( )
29+ . sheet ( isPresented: $showConsole) {
30+ NavigationView {
31+ ConsoleView ( )
32+ }
2933 }
30- }
31- . onShake {
32- showConsole. toggle ( )
33- }
34+ . onShake {
35+ showConsole. toggle ( )
36+ }
37+ #else
38+ assembly. assemble ( )
39+ #endif
3440 }
3541 }
3642}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ configFiles:
1515 Release : ./HackerNews/Resources/Configurations/Release.xcconfig
1616settings :
1717 base :
18- SWIFT_VERSION : " 5.7 "
18+ SWIFT_VERSION : " 5.9 "
1919 configs :
2020 Debug :
2121 DEVELOPMENT_TEAM : A8WE5LL2GU
You can’t perform that action at this time.
0 commit comments