Skip to content

EXTENSION

PackageVersion ​

swift
extension PackageVersion

Methods ​

versionSegments(_:) ​

swift
public static func versionSegments(_ version: String) -> [String]

encode(to:) ​

swift
public func encode(to encoder: Encoder) throws

Parameters ​

NameDescription
encoderThe encoder to write data to.

init(from:) ​

swift
public init(from decoder: Decoder) throws

Parameters ​

NameDescription
decoderThe decoder to read data from.