UUIDStringStyle 1.0.2

UUIDStringStyle 1.0.2

Keunhyun Oh 维护。



  • ocworld

UUIDStringStyle

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install

let canonical = UUID().uuidString(style: .canonical)    //E56D8738-C2EB-4021-A249-D125AAFE7F57
let noHyphens = UUID().uuidString(style: .noHyphens)    //055BD3A7178447DCA59C4E0A3F331B01
let surroundingBraces = UUID().uuidString(style: .surroundingBraces)    //{EE64F84B-8126-4814-9C2E-A9E0A5BE3680}
let urn = UUID().uuidString(style: .urn)    //urn:uuid:E756CC57-F606-4FD0-8923-CD328F3BC68F

let noHyphens2 = UUIDStringStyle.noHyphens.uuidString(UUID())   //055BD3A7178447DCA59C4E0A3F331B01

需求

安装

UUIDStringStyle 可通过 CocoaPods 使用。要安装它,只需将以下行添加到您的 Podfile

pod 'UUIDStringStyle'

作者

Keunhyun Oh,[email protected]

许可协议

UUIDStringStyle 可在 MIT 许可协议下使用。有关更多信息,请参阅 LICENSE 文件。