SwiftDocCSemanticVersionStructureSemanticVersionA semantic version.struct SemanticVersionDiscussionA version that follows the Semantic Versioning specification.TopicsOperatorsstatic func < (SemanticVersion, SemanticVersion) -> BoolCompare one semantic version with another.Initializersinit(from: any Decoder) throwsinit(major: Int, minor: Int, patch: Int, prerelease: String?, buildMetadata: String?)Instance Propertiesvar buildMetadata: String?Optional build metadata.var description: Stringvar major: IntThe major version number.var minor: IntThe minor version number.var patch: IntThe patch version number.var prerelease: String?The optional prerelease version component, which may contain non-numeric characters.