Skip to content

Commit ed2eed6

Browse files
authored
Add StandardLibraryAdditions (#351)
* Update folder structure for Util * Add CollectionOfTwo implementation and tests * Add EquatableOptionalObject utility * Add IndirectOptional * Add Comparable extension * Add Pair and ArrayID * Add UnsafeMutableBufferProjectionPointer * Add Numeric and Sequence extensions * Add Collection Extension and tests * Add CountingIndexCollection and CountingIndex * Add StandardLibraryAdditionsTests.swift * Add Dictionary and Range extensions * Add String extension and array extensions * Fix test case issue
1 parent 94f005d commit ed2eed6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1508
-165
lines changed

Sources/OpenSwiftUICore/Data/Util/Cache3.swift

Lines changed: 0 additions & 80 deletions
This file was deleted.

Sources/OpenSwiftUICore/Runtime/TypeConformance.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,8 @@ package struct TypeConformance<P> where P: ProtocolDescriptor {
4949
}
5050
}
5151

52-
package func conformsToProtocol(_ type: any Any.Type, _ desc: UnsafeRawPointer) -> Bool {
53-
swiftConformsToProtocol(type, desc) != nil
54-
}
55-
5652
@_silgen_name("swift_conformsToProtocol")
57-
private func swiftConformsToProtocol(
53+
func swiftConformsToProtocol(
5854
_ type: Any.Type,
5955
_ protocolDescriptor: UnsafeRawPointer
6056
) -> UnsafeRawPointer?

0 commit comments

Comments
 (0)