You can open 'Package.swift' and under supportedInterfaceOrientations which should be
supportedInterfaceOrientations: [
.portrait,
.landscapeRight,
.landscapeLeft,
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
]
remove .portrait' and '.portraitUpsideDown(.when(deviceFamilies: [.pad])), and therefore the final code should be
supportedInterfaceOrientations: [
.landscapeRight,
.landscapeLeft,
]
Hope that helped!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: