Contents

mattrubin/identifier

`Identifier` is a generic struct backed by a UUID, which can be specialized for the model type it identifies and provides unique, decentralized identity in a value type. It is Equatable, Hashable, Sendable, and Codable, serializing to a simple UUID string.

Installation

[SPM]

Add the following line to the dependencies section of your [package manifest][Package.swift]:

.package(url: "https://github.com/mattrubin/Identifier.git", from: "2.0.0"),

Then add "Identifier" to the dependencies array of any target which should be linked with this library.

[SPM]: https://swift.org/package-manager/ [Package.swift]: https://github.com/swiftlang/swift-package-manager/tree/main/Documentation

License

Identifier is released under the MIT License.

Package Metadata

Repository: mattrubin/identifier

Default branch: master

README: README.md