Skip to content

Commit 861b044

Browse files
authored
Поправил превью в RootView (#229)
1 parent a7ae9a9 commit 861b044

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

SwiftUI-WorkoutApp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@
974974
CLANG_TIDY_MISC_REDUNDANT_EXPRESSION = YES;
975975
CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY = YES;
976976
CODE_SIGN_STYLE = Automatic;
977-
CURRENT_PROJECT_VERSION = 1;
977+
CURRENT_PROJECT_VERSION = 2;
978978
DEVELOPMENT_ASSET_PATHS = "SwiftUI-WorkoutApp/Preview\\ Content/PreviewContent.swift SwiftUI-WorkoutApp/Preview\\ Content";
979979
DEVELOPMENT_TEAM = CR68PP2Z3F;
980980
ENABLE_PREVIEWS = YES;
@@ -1023,7 +1023,7 @@
10231023
CLANG_TIDY_MISC_REDUNDANT_EXPRESSION = YES;
10241024
CLANG_WARN_SEMICOLON_BEFORE_METHOD_BODY = YES;
10251025
CODE_SIGN_STYLE = Automatic;
1026-
CURRENT_PROJECT_VERSION = 1;
1026+
CURRENT_PROJECT_VERSION = 2;
10271027
DEVELOPMENT_ASSET_PATHS = "SwiftUI-WorkoutApp/Preview\\ Content/PreviewContent.swift SwiftUI-WorkoutApp/Preview\\ Content";
10281028
DEVELOPMENT_TEAM = CR68PP2Z3F;
10291029
ENABLE_PREVIEWS = YES;

SwiftUI-WorkoutApp/Screens/Root/RootView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import NetworkStatus
12
import SWDesignSystem
23
import SwiftUI
34

@@ -23,5 +24,7 @@ struct RootView: View {
2324
RootView()
2425
.environmentObject(DefaultsService())
2526
.environmentObject(TabViewModel())
27+
.environmentObject(SportsGroundsManager())
28+
.environmentObject(NetworkStatus())
2629
}
2730
#endif

0 commit comments

Comments
 (0)