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

Cannot find 'AlertCustom' in scope #23

Closed
nwagu opened this issue Oct 17, 2021 · 1 comment
Closed

Cannot find 'AlertCustom' in scope #23

nwagu opened this issue Oct 17, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@nwagu
Copy link

nwagu commented Oct 17, 2021

I am trying to add a custom background to a loading alert and I am getting these errors

Cannot find 'AlertCustom' in scope and Extra argument 'custom' in call

import AlertToast

...

let alertCustomisation = AlertCustom(
    backgroundColor: Color("primary"),
    titleColor: Color.red,
    subTitleColor: Color.red
)

@Published var loading = AlertToast(type: .loading, title: "", custom: alertCustomisation)
@nwagu nwagu added the bug Something isn't working label Oct 17, 2021
@elai950
Copy link
Owner

elai950 commented Oct 18, 2021

Hi!
Thank you for noticing this problem.
The right module is AlertStyle (was AlertCustom in earlier versions).

I also changed the README file to the correct naming.

Argument custom -> style.
AlertCustom -> AlertStyle.

Closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants