Floaty
Floaty copied to clipboard
Floaty is preventing from changing device orientation
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