material-components-ios icon indicating copy to clipboard operation
material-components-ios copied to clipboard

how to Hide Snackbar manually without time interval.

Open neen-tech opened this issue 5 years ago • 2 comments

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.

neen-tech avatar Aug 06 '20 13:08 neen-tech

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 .

neen-tech avatar Aug 06 '20 13:08 neen-tech