-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
Hello!
There is an issue with show/hide loader when less than 0.5 seconds have passed with the showLoader() call.
Because you add indicator after 0.5 second in showLoader() method:
UIView.transition(with: self, duration: 0.5, options: .curveEaseOut, animations: {
self.titleLabel?.alpha = 0.0
self.imageAlpha = 0.0
}) { (finished) in
self.addSubview(self.indicator)
self.indicator.startAnimating()
}
And in hideLoader you have this code:
open func hideLoader(){
guard self.subviews.contains(indicator) == true else {
return
}
Reactions are currently unavailable