We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c711bfc commit 8e5ebe2Copy full SHA for 8e5ebe2
LXFProtocolTool/Classes/FullScreenable/FullScreenable.swift
@@ -88,9 +88,8 @@ extension FullScreenable {
88
UIView.animate(withDuration: _config.animateDuration) {
89
// 强制横竖屏
90
let orientation: UIInterfaceOrientation = _isEnter ? _config.enterFullScreenOrientation : .portrait
91
- if !_isEnter { // 防止已经竖屏导致无法退出全屏
92
- UIApplication.shared.lxf.rotate(with: UIApplication.shared.statusBarOrientation)
93
- }
+ // 防止 设备已经竖放导致无法退出全屏 或 设备已经横屏导致无法进入全屏
+ UIApplication.shared.lxf.rotate(with: UIApplication.shared.statusBarOrientation)
94
UIApplication.shared.lxf.rotate(with: orientation)
95
}
96
0 commit comments