swift-serializer icon indicating copy to clipboard operation
swift-serializer copied to clipboard

Serialize CLLocation Objects

Open flohei opened this issue 8 years ago • 0 comments

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?

flohei avatar Apr 28 '16 18:04 flohei