I am using a library MDWamp written in objective C and it has a property of the following type
@property (nonatomic, strong) void (^deferredWampCRASigningBlock)( NSString *challange, void(^finishBLock)(NSString *signature) );
This is the signature in swift
public var deferredWampCRASigningBlock: ((String!, ((String!) -> Void)!) -> Void)!
and when I try to instantiate it in swift in the following manner
self.wamp?.config.deferredWampCRASigningBlock?(str : String , { (str2 : String) -> Void in
})
but I get this error
Cannot convert value of type 'String.Type' to expected argument type 'String!'
Any suggestions would be appreciated.