Im trying to do run some code on the end of the a snackbar message being shown from this repo: https://github.com/material-components/
But I really don't understand the syntax of a method enough to implement it. This one specifically: https://github.com/material-components/material-components-ios/blob/develop/components/Snackbar/src/MDCSnackbarMessage.h#L125
@property(nonatomic, copy, nullable) MDCSnackbarMessageCompletionHandler completionHandler;
// I've tried a'lot of different ways but nothing works:
let message = MDCSnackbarMessage()
message.completionHandler (success: Bool?) -> Void in do {
}
message.completionHandler = true in {
}
To be quite honest I don't understand the method syntax good enough to use it.