gordontucker / FittedSheets

Bottom sheets for iOS
MIT License
1.32k stars 278 forks source link

Add supportedInterfaceOrientations #181

Closed MariyanskiDev closed 1 year ago

MariyanskiDev commented 2 years ago

Hello there. In my app some screen supporting different interface orientation like:

override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        return UIDevice.current.userInterfaceIdiom == .pad ? .all : [.portrait, .portraitUpsideDown]
 }

So I faced with a problem that SheetViewController ignoring supportedInterfaceOrientations of a child

I thinks that should be fair enough if SheetViewController could inherit supported interface orientations of his child