You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using RestKit in my swift project and I need value transformers for a particular use case. I was trying to write this in swift as below just as a simple upper case transformer.
func transformValue(_ inputValue:Any?, toValue outputValue:Any?, of outputValueClass:AnyClass)throws->Bool{varoutputValue= outputValue
if outputValueClass is String.Type{
outputValue =(inputValue as?String)?.uppercased()}return true
}
When I do this, I get this error RKValueTransformer subclasses must provide a concrete implementation of 'transformValue:toValue:ofClass:error:'
I am using RestKit in my swift project and I need value transformers for a particular use case. I was trying to write this in swift as below just as a simple upper case transformer.
When I do this, I get this error
RKValueTransformer subclasses must provide a concrete implementation of 'transformValue:toValue:ofClass:error:'
How do I write these lines in swift?
The text was updated successfully, but these errors were encountered: