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

toddheasley/version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}