swift-serializer
swift-serializer copied to clipboard
Serialize CLLocation Objects
I'm trying to serialize objects that contain a CLLocation
object as a property and toDictionary
does not seem to cover that case yet. So I'm contemplating what the best solution here is. I thought I could probably just add a propValue is CLLocation
case to the function and extract coordinate.latitude
and coordinate.longitude
and store them as Double
values in there. But that seems kinda messy to me. Is there a nicer way you could suggest?