summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.MacOS/Extensions/NSViewControllerExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.MacOS/Extensions/NSViewControllerExtensions.cs')
-rw-r--r--Xamarin.Forms.Platform.MacOS/Extensions/NSViewControllerExtensions.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/Xamarin.Forms.Platform.MacOS/Extensions/NSViewControllerExtensions.cs b/Xamarin.Forms.Platform.MacOS/Extensions/NSViewControllerExtensions.cs
deleted file mode 100644
index f5562322..00000000
--- a/Xamarin.Forms.Platform.MacOS/Extensions/NSViewControllerExtensions.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Threading.Tasks;
-using AppKit;
-
-namespace Xamarin.Forms.Platform.MacOS
-{
- internal static class NSViewControllerExtensions
- {
- public static Task<T> HandleAsyncAnimation<T>(this NSViewController container, NSViewController fromViewController,
- NSViewController toViewController, NSViewControllerTransitionOptions transitonOption,
- Action animationFinishedCallback, T result)
- {
- var tcs = new TaskCompletionSource<T>();
-
- container.TransitionFromViewController(fromViewController, toViewController, transitonOption, () =>
- {
- tcs.SetResult(result);
- animationFinishedCallback?.Invoke();
- });
-
- return tcs.Task;
- }
- }
-} \ No newline at end of file