This is how it is defined in objective-c:
@interface AFHTTPRequestOperation : AFURLConnectionOperation
@property (readonly, nonatomic, strong) id responseObject;
How to assign sth to this property?
I would like to mock this property for later usage. So I need there my own responseObject
overriden in Swift. Any ideas how to do this? I can subclass, extend or whatever. The only thing is it must by type of AFHTTPRequestOperation
.
class MyRequestOperation: AFHTTPRequestOperation {
override var responseObject: [String: AnyObject]
}
It produces an error:
Getter for responseObject with Objective-C selector responseObject conflicts with getter for responseObject from superclass AHTTPRequestOperation with the same Objective-C selector