CRToast icon indicating copy to clipboard operation
CRToast copied to clipboard

Feature request: ability to add a button

Open luzianscherrer opened this issue 9 years ago • 4 comments

It would be great if one could add a button that triggers an execution block to the right or left of the Toast. That way for example a dismiss button could easily be implemented. I'm thinking about something along the those lines:

kCRToastButtonImage : [UIImage imageNamed:@"ToastDismissButtonImage"],
kCRToastButtonAlignmentKey : @(CRToastAccessoryViewAlignmentRight),
kCRToastButtonExecutionBlock : ...

dismissbutton

luzianscherrer avatar Dec 17 '15 10:12 luzianscherrer

+1

dogo avatar Jan 28 '16 17:01 dogo

any one got solution how to add button on notification view.

yogeshrathore123 avatar Feb 08 '16 08:02 yogeshrathore123

I would just add a key for a button like images are added.

An alternative i guess would be adding the text swipe to close tap to accept or something along those lines but that solution kinda isnt optimal at all

dmiedema avatar Feb 08 '16 14:02 dmiedema

+1

ivanmih avatar Jun 29 '17 10:06 ivanmih