fix to make the function run on RiotSwiftUI

This commit is contained in:
Mauro Romito
2022-11-22 18:44:17 +01:00
parent 2540f9de92
commit c94138b541
@@ -35,7 +35,7 @@ struct Composer: View {
private var isLandscapeIphone: Bool {
let device = UIDevice.current
return device.isPhone && device.orientation.isLandscape
return device.userInterfaceIdiom == .phone && device.orientation.isLandscape
}
private let horizontalPadding: CGFloat = 12