material-components-ios
material-components-ios copied to clipboard
how to Hide Snackbar manually without time interval.
Feature Request/Suggestion
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Additional context
Add any other context or screenshots about the feature request here.
The title doesn't have a [Component] prefix.
MDCSnackBar : - how to hide MDCSnackBar manually without touching and applying duration on it.
let action = MDCSnackbarMessageAction() let message = MDCSnackbarMessage() message.text = "Please check your internet connection or try again later" //message.duration = 10 let actionHandler = {() in
}
action.handler = actionHandler
action.title = "Retry"
message.action = action
MDCSnackbarManager.show(message)
Note : - After showing Snackbar it should be visible infinity time and should hide on command .