BastiaanJansen / toast-swift

Customizable Swift Toast view built with UIKit. 🍞
MIT License
478 stars 77 forks source link

Attach to view #2

Open Dave181295 opened 2 years ago

Dave181295 commented 2 years ago

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

BastiaanJansen commented 2 years ago

What does the error message say?

Dave181295 commented 2 years ago

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..

Damith014 commented 2 years ago

Any solutions for this?

BastiaanJansen commented 1 year ago

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