Can anyone help find how to write this in Swift
NSMutableDictionary<FBOpenGraphObject> *object = [FBGraphObject openGraphObjectForPost];
The above ObjectiveC code says that the objecttype NSMutableDictionaryconforms to the protocol FBOpenGraphObject. I tried to imagine it quickly as
var object:FBOpenGraphObject, Dictionary = FBGraphObject.openGraphActionForPost()
object.provisionedForPost = true
But this is not correct, I cannot assign any value to the object. Help me understand how to represent an object according to the protocol in a quick
source
share