   
   /// A reference to the user interface layout direction.
   public static var userInterfaceLayoutDirection: UIUserInterfaceLayoutDirection {
-    return UIApplication.shared.userInterfaceLayoutDirection
+    return Application.shared.userInterfaceLayoutDirection
   }
 }

import UIKit

public struct Application {
  /// An optional reference to the main UIWindow.
  public static var keyWindow: UIWindow? {
    return UIApplication.shared.keyWindow
  }
  
  /// An optional reference to the top most view controller.

  
  /// A boolean indicating if the device is in Landscape mode.
  public static var isLandscape: Bool {
    return Application.shared.statusBarOrientation.isLandscape
  }
  
  /// A boolean indicating if the device is in Portrait mode.
