orientation bug
This commit is contained in:
parent
1d3db301fb
commit
05f800d831
|
@ -33,7 +33,7 @@ struct ItemView: View {
|
||||||
.preferredColorScheme(.dark)
|
.preferredColorScheme(.dark)
|
||||||
.edgesIgnoringSafeArea(.all)
|
.edgesIgnoringSafeArea(.all)
|
||||||
.overrideViewPreference(.unspecified)
|
.overrideViewPreference(.unspecified)
|
||||||
.supportedOrientations(.landscape)
|
|
||||||
} else {
|
} else {
|
||||||
Group {
|
Group {
|
||||||
if(item.Type == "Movie") {
|
if(item.Type == "Movie") {
|
||||||
|
|
|
@ -185,6 +185,14 @@ class PlayerViewController: UIViewController, VLCMediaDelegate, VLCMediaPlayerDe
|
||||||
self.mainActionButton.setImage(UIImage(systemName: "pause"), for: .normal)
|
self.mainActionButton.setImage(UIImage(systemName: "pause"), for: .normal)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
|
||||||
|
return .landscape
|
||||||
|
}
|
||||||
|
|
||||||
|
override var shouldAutorotate: Bool {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue