Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach to view #2

Open
Dave181295 opened this issue Oct 27, 2021 · 4 comments
Open

Attach to view #2

Dave181295 opened this issue Oct 27, 2021 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Dave181295
Copy link

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 BastiaanJansen added the help wanted Extra attention is needed label Oct 27, 2021
@BastiaanJansen BastiaanJansen self-assigned this Oct 27, 2021
@BastiaanJansen
Copy link
Owner

What does the error message say?

@Dave181295
Copy link
Author

Dave181295 commented Oct 27, 2021

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
Copy link

Any solutions for this?

@BastiaanJansen
Copy link
Owner

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

@BastiaanJansen BastiaanJansen added the bug Something isn't working label Jan 6, 2023
@BastiaanJansen BastiaanJansen removed their assignment Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants