Skip to content

Commit

Permalink
concurrency safety
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaiMadlener committed Nov 10, 2024
1 parent 996fb44 commit ca47c25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ let package = Package(
.target(name: "ResearchKitUI"),
.target(name: "ResearchKitActiveTask", condition: .when(platforms: [.iOS]))
],
path: "ResearchKitSwiftUI",
swiftSettings: [
swiftConcurrency
],
plugins: [] + swiftLintPlugin()
path: "ResearchKitSwiftUI"
//swiftSettings: [

Check failure on line 49 in Package.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint

Comment Spacing Violation: Prefer at least one space after slashes for comments (comment_spacing)
// swiftConcurrency
//],

Check failure on line 51 in Package.swift

View workflow job for this annotation

GitHub Actions / SwiftLint / SwiftLint

Comment Spacing Violation: Prefer at least one space after slashes for comments (comment_spacing)
// plugins: [] + swiftLintPlugin()
)
// .target(
// name: "ResearchKitSwiftUI",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func convertKilogramsToWholeAndFraction(_ kilograms: Double) -> (
}

extension Binding {
func unwrapped<T>(defaultValue: T) -> Binding<T> where Value == T? {
func unwrapped<T: Sendable>(defaultValue: T) -> Binding<T> where Value == T? {
Binding<T>(
get: { self.wrappedValue ?? defaultValue },
set: { self.wrappedValue = $0 })
Expand Down

0 comments on commit ca47c25

Please sign in to comment.