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

Cant add Floaty button to Window level #303

Open
abubakar-9013 opened this issue Apr 23, 2021 · 1 comment
Open

Cant add Floaty button to Window level #303

abubakar-9013 opened this issue Apr 23, 2021 · 1 comment

Comments

@abubakar-9013
Copy link

abubakar-9013 commented Apr 23, 2021

I am using this pod, and when i try to use the code to add floaty button to window level, the button is not showing. I am using the code as shown in example.

Floaty.global.button.addItem(title: "Hello")
Floaty.global.show()

However, at the UIViewController level, the button is showing up. What can be the problem? All I am doing is just creating a new project and after installing pod, inside the ViewController viewDidLoad (Also tried with ViewDidAppear), I am writing these two lines. Any help would be appreciated! The pod version is 4.2.0

@MainasuK
Copy link
Contributor

If the app using the window scene. Then the internal FloatyWindow needs init with init(windowScene:) (it works). But that will cause the button to only display on that window. And the global instance does not make sense due to multiple window scenes.

Maybe needs a window manager to sync the button in all window scenes. I'm not sure is that a use case in that situation.

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