If ValueFormatter's functions format() and unformat() would return Any instead of AnyObject I could write a ValueFormatter that transforms a dictionary of latitude and longitude to a CLLocationCoordinate2D struct. Now I am forced to convert it to CLLocation object which means unnecessary overhead.
That would be a nice update to the current system. Unfortunately Spine currently uses KVC to get and set values on resource objects. This means that we can only use it with reference types afaik.
If ValueFormatter's functions
format()
andunformat()
would returnAny
instead ofAnyObject
I could write a ValueFormatter that transforms a dictionary of latitude and longitude to aCLLocationCoordinate2D
struct. Now I am forced to convert it toCLLocation
object which means unnecessary overhead.I'm sure there are more advantages to this.