Swiftpack.co - YOCKOW/SwiftSemanticVersion as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by YOCKOW.
YOCKOW/SwiftSemanticVersion 1.0.1
Yet another implementation of Semantic Versioning in Swift.
⭐️ 0
🕓 2 years ago
.package(url: "https://github.com/YOCKOW/SwiftSemanticVersion.git", from: "1.0.1")

What is SwiftSemanticVersion?

Yet another implementation of Semantic Versioning in Swift.

Sample Code

import SemanticVersion

let version = SemanticVersion("1.0.0-beta.2+20170904.001")!
// {
//   major: 1,
//   minor: 0,
//   patch: 0,
//   prereleaseIdentifiers: "beta.2"
//   buildMetadataIdentifiers: "20170904.001"
// }

Protocols

SemanticVersion conforms to Comparable and CustomStringConvertible

License

MIT License.
See "LICENSE.txt" for more information.

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics