Created
          July 12, 2017 09:27 
        
      - 
      
- 
        Save fahied/40c279ffc416662018523415ece837d9 to your computer and use it in GitHub Desktop. 
    iOS: Play youtube video in fullscreen when device orientation is landscape
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask { | |
| if window == self.window { | |
| return .portrait | |
| } else { | |
| return .allButUpsideDown | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment