SwiftSpinner icon indicating copy to clipboard operation
SwiftSpinner copied to clipboard

inputAcessoryView is always displayed above SwiftSpinner

Open alezoffoli opened this issue 4 years ago • 2 comments

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?

alezoffoli avatar Dec 01 '20 21:12 alezoffoli

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.

andreamazz avatar Dec 02 '20 08:12 andreamazz

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: Screen Shot 2020-12-05 at 17 22 08

alezoffoli avatar Dec 05 '20 20:12 alezoffoli