ANLoader
ANLoader copied to clipboard
The ANLoader sometimes doesnot disappear after calling ANLoader.hide()
Please provide some code here or your repo. @Dyana123 so we can resolve it.
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.