hi, how to return UIInterfaceOrientationMask from ...
# compose-ios
g
hi, how to return UIInterfaceOrientationMask from Kotlin to Swift?
Here is my delegate in Swift
Copy code
import UIKit
import ComposeApp

class AppDelegate: UIResponder, UIApplicationDelegate {
    
    var window: UIWindow?

    func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
//        return .portrait // This works
        return DeviceOrientationManager_iosKt.allowedOrientation // This shows error
    }
}
and this is in Kotlin, in iosMain
Copy code
public var allowedOrientation: UIInterfaceOrientationMask = UIInterfaceOrientationMaskPortrait
I get error AppDelegate.swift1847 Cannot convert return expression of type 'UInt64' to return type 'UIInterfaceOrientationMask'