Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Latest commit

 

History

History
20 lines (13 loc) · 793 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 793 Bytes

Version

Semantic version model for Swift Package Manager

Requirements

Targets iOS/iPadOS/tvOS 13, as well as watchOS 6 and macOS 10.15 Catalina. Written in Swift 5.3 and requires Xcode 12 or newer to build.

Comparable Bundle Version

import Foundation
import Version

if Bundle.main.version > Version(string: "2.0") {
    print(Bundle.main.version.description) // "2.1"
    print(Bundle.main.version.description(verbose: true)) // "2.1.0"
}