Skip to content

Commit

Permalink
Drop Identifiable from Bindable. (#62)
Browse files Browse the repository at this point in the history
* Drop Identifiable from Bindable.

* wip
  • Loading branch information
mbrandonw authored Apr 18, 2024
1 parent 64a3723 commit d2048fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 2 additions & 0 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_STRICT_CONCURRENCY = complete;
};
name = Debug;
};
Expand Down Expand Up @@ -411,6 +412,7 @@
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_STRICT_CONCURRENCY = complete;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ let package = Package(

for target in package.targets where target.type != .system {
target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(
.enableExperimentalFeature("StrictConcurrency")
)
target.swiftSettings?.append(contentsOf: [
.enableExperimentalFeature("StrictConcurrency"),
])
}
9 changes: 0 additions & 9 deletions Sources/Perception/Bindable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@
}
}

@available(iOS, introduced: 13, obsoleted: 17)
@available(macOS, introduced: 10.15, obsoleted: 14)
@available(tvOS, introduced: 13, obsoleted: 17)
@available(watchOS, introduced: 6, obsoleted: 10)
extension Bindable: Identifiable where Value: Identifiable {
/// The stable identity of the entity associated with this instance.
public var id: Value.ID { self.wrappedValue.id }
}

@available(iOS, introduced: 13, obsoleted: 17)
@available(macOS, introduced: 10.15, obsoleted: 14)
@available(tvOS, introduced: 13, obsoleted: 17)
Expand Down

0 comments on commit d2048fb

Please sign in to comment.