Change CocoaPods spec name and add new way to access attributes
New with this version is dynamicMemberLookup
of JSON:API attributes. You can still access a model's attributes as model[\.attributeName]
but now you can also just write model.attributeName
. Note this applies to attributes, not relationships.
- Swift Tools version 5.1 is required for SPM
- Swift 5.1 is required for the dynamicMemberLookup feature allowing more concise access to JSON:API attributes.
- The PodSpec name of this library has changed to avoid a name conflict with a different JSONAPI library -- the module name remains the same, so your imports don't change, just your pod file dependency declaration.