[DEPRECATED] The easy to use Swift JSON encoder
Wrap now uses the Swift 4 version of the Swift Package Description API.
View build details and download artifacts on buddybuild: Wrap (iOS, Wrap-iOS)
Data
(thanks @fpillet!)View build details and download artifacts on buddybuild: Wrap (iOS, Wrap-iOS)
Fixes
NSRegularExpression
, by @darthpelo.Some
string, by @PaulTaykalo.Wrap is now fully updated for Xcode 8.1 and the latest version of the Swift Package Manager (thanks @rayfix!)
URL
type, as well as NSURL
.Wrap 2.0 is a new major version that brings full Swift 3 APIs, bug fixes and new features ?
⚠️ Note that this release includes breaking changes for users of Wrap 1.x. Please upgrade with caution and make sure that you migrate to the new APIs. Also note that Wrap 2.0 is only compatible with Swift 3.
Wrap(..)
is now wrap(..)
Wrap(objects:)
is now wrap(_)
keyForWrapping(propertyName:)
is now keyForWrapping(propertyNamed:)
WrapCustomizable.wrap()
is now wrap(context:dateFormatter:)
wrap(propertyName:originalValue:)
is now wrap(propertyNamed:originalValue:context:dateFormatter:)
snake_case
is now supported (myProperty ->
my_property`)context:
) when initiating the wrappingThis release of Wrap introduces the ability to encode JSON arrays directly using Wrap:
let objects = [...]
let dictionaries: [WrappedDictionary] = try Wrap(objects)
let data: NSData = try Wrap(objects)
CustomStringConvertible
into strings, rather than requiring them to conform to WrappableKey
.