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

Warning: "Result of call to 'hide(_:animated:)' is unused" #39

Closed
yuchenglin opened this issue Oct 10, 2016 · 5 comments
Closed

Warning: "Result of call to 'hide(_:animated:)' is unused" #39

yuchenglin opened this issue Oct 10, 2016 · 5 comments

Comments

@yuchenglin
Copy link

yuchenglin commented Oct 10, 2016

Hi,
Your loading indicator works well. However, Xcode alaway gives warnings of "Result of call to hide(_:animated:)' is unused and also in the case of show(). How could I deal with this?

@lfarah
Copy link
Collaborator

lfarah commented Oct 10, 2016

You just need to do this:

_ = EZLoadingActivity.show("Loading...", disableUI: true)

Let me know if you need any help and I can reopen the issue! 😉

@lfarah lfarah closed this as completed Oct 10, 2016
@Esqarrouth
Copy link
Owner

Don't we have discardable result in those funcs?

@yuchenglin
Copy link
Author

@lfarah yap! the warning disappeared

@lfarah
Copy link
Collaborator

lfarah commented Oct 10, 2016

@goktugyil Xcode 8 still gives warning....

@Esqarrouth
Copy link
Owner

Then what good does discarable result do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants