Skip to content

v1.5.0

Compare
Choose a tag to compare
@trasch trasch released this 23 May 11:23
· 23 commits to main since this release
3555473

SwiftData compatibility

This release adds compatiblity with SwiftData. Use it like this:

GeoJsonTransformer.register()

@Model
class GeoJsonModel {
    @Attribute(.transformable(by: GeoJsonTransformer.name.rawValue)) var geoJson: GeoJson?
    @Attribute(.transformable(by: GeoJsonTransformer.name.rawValue)) var point: Point?
    ...
}