Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

The ANLoader sometimes doesnot disappear after calling ANLoader.hide() #3

Open
Dyana123 opened this issue Jun 23, 2018 · 2 comments
Open
Labels

Comments

@Dyana123
Copy link

No description provided.

@ANSCoder
Copy link
Owner

ANSCoder commented Sep 23, 2018

Please provide some code here or your repo. @Dyana123 so we can resolve it.

@sebgrz
Copy link

sebgrz commented Nov 5, 2018

I think the problem is with https://github.com/ANSCoder/ANLoader/blob/master/ANLoader/Classes/ANLoader.swift#L230
I have the same issue. And i'm supposing that hide action is calling before start.

// EDIT
This is my workaround. I have changed this line https://github.com/ANSCoder/ANLoader/blob/master/ANLoader/Classes/ANLoader.swift#L66 to this DispatchQueue.main.asyncAfter(deadline: .now() + 0.3, execute: {
This little delay fixed my problem.

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

No branches or pull requests

3 participants