Structure
UUID
iOS 6.0+
iPadOS 6.0+
Mac Catalyst 6.0+
macOS 10.8+
tvOS 9.0+
watchOS 2.0+
A universally unique value to identify types, interfaces, and other items.
struct UUID
Topics
Operators
Initializers
init()Creates a UUID with RFC 4122 version 4 random bytes.init(uuid: uuid_t)Creates a UUID from the uuid C-language structure.init?(uuidString: String)Creates a UUID from a string representation.
Instance Properties
var debugDescription: Stringvar description: Stringvar uuid: uuid_tReturns the UUID as bytes.var uuidString: StringReturns a string created from the UUID, such as “E621E1F8-C36C-495A-93FC-0C247A3E6E5F”.
Instance Methods
Type Methods
static func random(using: inout some RandomNumberGenerator) -> UUIDGenerates a new random UUID.
Default Implementations
Relationships
Conforms To
Configuration.ExpressibleByConfigStringSwift.ComparableSwift.CopyableSwift.CustomReflectableSwift.CustomStringConvertibleSwift.DecodableSwift.EncodableSwift.EquatableSwift.EscapableSwift.HashableSwift.LosslessStringConvertibleSwift.SendableSwift.SendableMetatype