xmartlabs / XLActionController

Fully customizable and extensible action sheet controller written in Swift
MIT License
3.33k stars 317 forks source link

How to disable auto rotate #137

Open boboxiaodd opened 4 years ago

boboxiaodd commented 4 years ago

i set Device Orientation is Portrait , but when the XLActionController show , it can auto rotate , i use PeriscopeActionController style , but PeriscopeActionController is not open class , i can't override it, i must add these code to class ActionController:

 override open var supportedInterfaceOrientations: UIInterfaceOrientationMask{
        get{
            return .portrait
        }
    }