Can anyone help to find how to write this in Swift
NSMutableDictionary<FBOpenGraphObject> *object = [FBGraphObject openGraphObjectForPost];
The above ObjectiveC code says object
of type NSMutableDictionary
is conform to protocol FBOpenGraphObject
. I tried to represent this in swift like
var object:FBOpenGraphObject, Dictionary = FBGraphObject.openGraphActionForPost()
// specify that this Open Graph object will be posted to Facebook
object.provisionedForPost = true //This will not work
But it is not proper, i'am not able to assign any value to object. Help me to figure out how to represent an object conform to a protocol in swift