You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the code has no dependencies other than the Swift standard library (it doesn't even use Foundation), it should work on all platforms where Swift is available.
18
+
19
+
I tested it on macOS, iOS, tvOS, and Linux.
20
+
15
21
## Usage
16
22
17
-
Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.
23
+
### Swift Package Manager
18
24
19
-
If you want to try this out in a Swift Package Manager project, add this to your `Package.swift` file:
25
+
Add this to your `Package.swift` file:
20
26
21
27
```swift
22
28
// Package.swift
@@ -30,6 +36,20 @@ let package = Package(
30
36
)
31
37
```
32
38
39
+
### Carthage
40
+
41
+
Add this to your `Cartfile`:
42
+
43
+
```
44
+
github "ole/SortedArray" ~> 0.3
45
+
```
46
+
47
+
Integration via Carthage should work for macOS, iOS, tvOS, and watchOS targets.
48
+
49
+
### Manually
50
+
51
+
Clone the repository and add or copy `SortedArray.swift` to your project. It has no dependencies.
0 commit comments