toast-swift icon indicating copy to clipboard operation
toast-swift copied to clipboard

Attach to view

Open Dave181295 opened this issue 2 years ago • 4 comments

I got problems attaching the toast to the top of the tabBar without attach argument it show in the top of the view controller, I want it to show to the bottom of it when trying utilsUi.showToast(title: "tet", message: "test", attachTo: self.tabBarController?.tabBar) I got crash

Dave181295 avatar Oct 27 '21 15:10 Dave181295

What does the error message say?

BastiaanJansen avatar Oct 27 '21 17:10 BastiaanJansen

Thanks for the response, I got

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot modify constraints for UITabBar managed by a controller'
terminating with uncaught exception of type NSException

it would be so much better if you give us an enum to choose where to put the toast like .bottom .top .underNavBar .topToTabNar etc..

Dave181295 avatar Oct 27 '21 21:10 Dave181295

Any solutions for this?

Damith014 avatar Jul 29 '22 17:07 Damith014

I currently do not have the time to fix this issue, but contributions are of course welcome!

BastiaanJansen avatar Sep 21 '22 08:09 BastiaanJansen