Support for Swift Package Manager · radex/SwiftyTimer@cd1c75b · GitHub
Skip to content
This repository was archived by the owner on May 1, 2026. It is now read-only.

Commit cd1c75b

Browse files
committed
Support for Swift Package Manager
1 parent 87ef0ed commit cd1c75b

6 files changed

Lines changed: 73 additions & 5 deletions

File tree

‎.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata‎

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Package.swift‎

Lines changed: 28 additions & 5 deletions

‎README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ Just add to your Cartfile:
108108
github "radex/SwiftyTimer"
109109
```
110110

111+
#### Swift Package Manager
112+
- iOS: Open Xcode, File->Swift Packages, search input **https://github.com/radex/SwiftyTimer.git**, and then select Version Up to Next Major **2.1.1** < .
113+
- Or add dependencies in your `Package.swift`:
114+
```ruby
115+
.package(url: "https://github.com/radex/SwiftyTimer.git", .upToNextMajor(from: "2.1.1")),
116+
```
117+
111118
#### Manually
112119

113120
Simply copy `Sources/SwiftyTimer.swift` to your Xcode project.

‎Tests/LinuxMain.swift‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import XCTest
2+
3+
import SwiftyTimerTests
4+
5+
var tests = [XCTestCaseEntry]()
6+
tests += SwiftyTimerTests.allTests()
7+
XCTMain(tests)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import XCTest
2+
@testable import SwiftyTimer
3+
4+
final class SwiftyTimerTests: XCTestCase {
5+
func testExample() {
6+
// This is an example of a functional test case.
7+
// Use XCTAssert and related functions to verify your tests produce the correct
8+
// results.
9+
XCTAssertEqual(SwiftyTimer().text, "Hello, World!")
10+
}
11+
12+
static var allTests = [
13+
("testExample", testExample),
14+
]
15+
}
Lines changed: 9 additions & 0 deletions

0 commit comments

Comments
 (0)