in objective-c we do
@property (strong, nonatomic) void(^Name)(id input, id selectedListItem);
then we set property
if (self.Name) {
self.Name(self,nil);
}
for accessing it viewcontroller
[classObject setName:^(id input, id selectedListItem)
// do something with the input and selectedListItem
];
how we can do it in swift3.