SwiftSpinner
SwiftSpinner copied to clipboard
inputAcessoryView is always displayed above SwiftSpinner
I'm currently working with a UIViewController which has a custom inputAcessoryView
, as in
override var inputAccessoryView: UIView {
return myInputAccessoryView
}
The problem is that, in this case, the inputAccessoryView
is always displayed above the SwiftSpinner. Is this by design, a bug, or is it something a can tweak either in my acessoryView or in how I call SwiftSpinner?
Hi @alezoffoli
this might be a bug. Can you do a quick test by calling bringSubviewToFront(spinner)
on UIApplication.shared.windows.first{ $0.isKeyWindow }
after show
? (The spinner reference is returned by the show
call.)
Just to asses where the issue is.
hey! I just made a quick test, same results, let me know if I can help further testing
let spinner = SwiftSpinner.show("Accessory view..."))
let window = UIApplication.shared.windows.first{ $0.isKeyWindow }
window!.bringSubviewToFront(spinner)
Screenshot: