ANLoader icon indicating copy to clipboard operation
ANLoader copied to clipboard

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

Open Dyana123 opened this issue 7 years ago • 2 comments

Dyana123 avatar Jun 23 '18 11:06 Dyana123

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

ANSCoder avatar Sep 23 '18 07:09 ANSCoder

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.

sebgrz avatar Nov 05 '18 12:11 sebgrz