An open API service indexing awesome lists of open source software.

https://github.com/ikesyo/swiftconversioning

Type conversion library for Swift lang.
https://github.com/ikesyo/swiftconversioning

Last synced: 10 months ago
JSON representation

Type conversion library for Swift lang.

Awesome Lists containing this project

README

          

# SwiftConversioning ![License MIT](http://img.shields.io/badge/license-MIT-green.svg)

Type conversion library for Swift lang. It uses the following feature:

```swift
extension Type {
@conversion func __conversion() -> TypeToConvert {
return TypeToConvert(self)
}
}
```

## Supported Conversions

### Array ->

- NSSet
- NSOrderedSet

### String ->

- Array\ like Ruby's `%w` notation
- NSDecimalNumber
- NSLocale
- NSRegularExpression
- NSScanner
- NSURL
- NSURLRequest
- NSUUID

### NSString ->

- NSCalendar
- Because `NSGregorianCalendar` and so on return `NSString!`, not `String`.

## Contributors

Syo Ikeda, [suicaicoca@gmail.com](mailto://suicaicoca@gmail.com)

## License

SwiftConversioning is licensed under the MIT license.