Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inputAcessoryView is always displayed above SwiftSpinner #145

Open
alezoffoli opened this issue Dec 1, 2020 · 2 comments
Open

inputAcessoryView is always displayed above SwiftSpinner #145

alezoffoli opened this issue Dec 1, 2020 · 2 comments

Comments

@alezoffoli
Copy link

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?

@andreamazz
Copy link
Collaborator

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.

@alezoffoli
Copy link
Author

alezoffoli commented Dec 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants