Sean G. Young

2pods

SGYKVCSafeNSObject

Provides a safe way to use key value coding on NSObject. Since Swift does not support ObjC's @try command it cannot catch the exceptions thrown using key value coding (eg. setValue:forKey). This library provides an extension on NSObject that will catch these exceptions and report them via NSError so that they can be safely used in Swift.

License: MIT

  • Objective C

SGYSwiftJSON

SGYSwiftJSON seeks to dramatically simplify serialization and deserialization of Swift model to and from JSON. While serialization is fully supported, the primary goal is to go beyond simple key-value coding to provide a system for creating properly typed object graphs from JSON. This includes recursive conversion of types contained in collections, dictionaries, and complex objects. Out-of-the-box functionality includes support for the majority of common Foundation types and a ready to inherit base class for complex types (not required, but easier). Protocols are provided which allow extending functionality to unusual objects.

License: MIT

  • Swift