toast-swift
toast-swift copied to clipboard
Attach to view
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
What does the error message say?
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..
Any solutions for this?
I currently do not have the time to fix this issue, but contributions are of course welcome!