Skip to content

Commit

Permalink
chore: Adjust usings
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Oct 16, 2024
1 parent a4b128c commit 6ad10db
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@
using Uno.UI.Extensions;

#if __IOS__
using UIKit;
using _UIViewController = UIKit.UIViewController;
using Uno.UI.Controls;

using Windows.UI.Core;
using Microsoft.UI.Xaml.Media.Animation;
using static Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls.MultiFrame;
using Microsoft.UI.Xaml.Controls.Primitives;

#elif __MACOS__
using AppKit;
#else
#endif

namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls
Expand Down Expand Up @@ -1541,7 +1536,7 @@ public async Task OpenModal(FrameSectionsTransitionInfo transitionInfo, Page pag
{
var uiViewController = new UiViewController(page);

var rootController = UIApplication.SharedApplication.KeyWindow.RootViewController;
var rootController = UIKit.UIApplication.SharedApplication.KeyWindow.RootViewController;

await rootController.PresentViewControllerAsync(uiViewController, animated: false);
}
Expand All @@ -1550,7 +1545,7 @@ public async Task CloseModal()
{
try
{
var rootController = UIApplication.SharedApplication.KeyWindow.RootViewController;
var rootController = UIKit.UIApplication.SharedApplication.KeyWindow.RootViewController;

await rootController.DismissViewControllerAsync(false);
}
Expand Down Expand Up @@ -1682,7 +1677,7 @@ public Task Run(Frame frameToHide, Frame frameToShow, bool frameToShowIsAboveFra

public class UIViewControllerSectionsTransitionInfo : FrameSectionsTransitionInfo
{
public UIViewControllerSectionsTransitionInfo(bool allowDismissFromGesture = true, UIModalPresentationStyle modalPresentationStyle = UIModalPresentationStyle.PageSheet, UIModalTransitionStyle modalTransitionStyle = UIModalTransitionStyle.CoverVertical)
public UIViewControllerSectionsTransitionInfo(bool allowDismissFromGesture = true, UIKit.UIModalPresentationStyle modalPresentationStyle = UIKit.UIModalPresentationStyle.PageSheet, UIKit.UIModalTransitionStyle modalTransitionStyle = UIKit.UIModalTransitionStyle.CoverVertical)
{
AllowDismissFromGesture = allowDismissFromGesture;
ModalPresentationStyle = modalPresentationStyle;
Expand All @@ -1691,9 +1686,9 @@ public UIViewControllerSectionsTransitionInfo(bool allowDismissFromGesture = tru

public bool AllowDismissFromGesture { get; }

public UIModalPresentationStyle ModalPresentationStyle { get; }
public UIKit.UIModalPresentationStyle ModalPresentationStyle { get; }

public UIModalTransitionStyle ModalTransitionStyle { get; }
public UIKit.UIModalTransitionStyle ModalTransitionStyle { get; }

public override FrameSectionsTransitionInfoTypes Type => FrameSectionsTransitionInfoTypes.UIViewControllerBased;
}
Expand Down

0 comments on commit 6ad10db

Please sign in to comment.