Skip to content

Commit

Permalink
Turn on strict concurrency checking in sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Dec 25, 2023
1 parent 9b9921d commit 1ef1133
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
ONLY_ACTIVE_ARCH = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_STRICT_CONCURRENCY = complete;
};
name = Debug;
};
Expand Down Expand Up @@ -316,6 +317,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_STRICT_CONCURRENCY = complete;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import SwiftUI

// @Instantiable macro marks this type as capable of being instantiated by SafeDI.
@Instantiable
@MainActor
@main
public struct NotesApp: App {
public var body: some Scene {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import SafeDI
import SwiftUI

@MainActor
@Instantiable
public struct NameEntryView: View {
public init(userService: any UserService) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import SafeDI
import SwiftUI

@MainActor
@Instantiable
public struct NoteView: View {
public init(userName: String, userService: any UserService, stringStorage: StringStorage) {
Expand Down

0 comments on commit 1ef1133

Please sign in to comment.