Skip to content

Commit

Permalink
fix(ios): avoid crash on portrait apps after taking a photo (#3926)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Dec 10, 2020
1 parent 3ce4c73 commit f182868
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ios/Capacitor/Capacitor/CAPBridgeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,6 @@ public class CAPBridgeViewController: UIViewController, CAPBridgeDelegate, WKScr
}
}

override open var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation {
return UIApplication.shared.statusBarOrientation
}

override public var supportedInterfaceOrientations: UIInterfaceOrientationMask {
var ret = 0
if self.supportedOrientations.contains(UIInterfaceOrientation.portrait.rawValue) {
Expand Down

0 comments on commit f182868

Please sign in to comment.