Floaty icon indicating copy to clipboard operation
Floaty copied to clipboard

Floaty is preventing from changing device orientation

Open Maor-Mac opened this issue 3 years ago • 0 comments

Hi, I am using Floaty with the flowing configuration:

Floaty.global.button.buttonImage = image
Floaty.global.button.buttonColor = backgroundColor
Floaty.global.button.items = []
Floaty.global.button.addItem(closeButtonTitle, icon: closeButtonImage, handler: closeButtonAction)
Floaty.global.button.isDraggable = true

When I'm trying to present a view controller with orientation like so:

UIDevice.current.set(orientation: .landscapeLeft)
UIViewController.attemptRotationToDeviceOrientation()

And it's not working, But after removing Floaty It works fine. what can be the problem? and how it can be fixed? Thanks

Maor-Mac avatar Jul 22 '21 09:07 Maor-Mac