https://github.com/ocworld/uuidstringstyle
Swift UUID의 string style을 지정할 수 있는 라이브러리입니다
https://github.com/ocworld/uuidstringstyle
Last synced: 2 months ago
JSON representation
Swift UUID의 string style을 지정할 수 있는 라이브러리입니다
- Host: GitHub
- URL: https://github.com/ocworld/uuidstringstyle
- Owner: ocworld
- License: mit
- Created: 2018-06-20T14:20:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-15T04:36:06.000Z (almost 7 years ago)
- Last Synced: 2024-04-20T12:51:17.395Z (about 1 year ago)
- Language: Swift
- Size: 21.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UUIDStringStyle
[](https://travis-ci.org/ocworld/UUIDStringStyle)
[](https://cocoapods.org/pods/UUIDStringStyle)
[](https://cocoapods.org/pods/UUIDStringStyle)
[](https://cocoapods.org/pods/UUIDStringStyle)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
```swift
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-CD328F3BC68Flet noHyphens2 = UUIDStringStyle.noHyphens.uuidString(UUID()) //055BD3A7178447DCA59C4E0A3F331B01
```## Requirements
## Installation
UUIDStringStyle is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'UUIDStringStyle'
```## Author
Keunhyun Oh, [email protected]
## License
UUIDStringStyle is available under the MIT license. See the LICENSE file for more info.