Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HealthKitUI] Add support for Xcode 15 #19017

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/healthkit.cs
Expand Up @@ -17,6 +17,13 @@
using System.ComponentModel;
using CoreLocation;
using UniformTypeIdentifiers;
#if MONOMAC
using AppKit;
using UIViewController = AppKit.NSViewController;
#else
using UIKit;
using NSViewController = Foundation.NSObject;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't really necessary in the context of this PR but thought it would be good to include to maintain consistency b/w platforms if there is a UI/NSViewController use case in the future..

#endif

#if !NET
using NativeHandle = System.IntPtr;
Expand Down Expand Up @@ -796,6 +803,10 @@ interface HKHealthStore {
[iOS (17, 0), Mac (14, 0), Watch (10, 0), NoTV, MacCatalyst (17, 0)]
[Export ("workoutSessionMirroringStartHandler", ArgumentSemantic.Copy)]
Action<HKWorkoutSession> WorkoutSessionMirroringStartHandler { get; set; }

[NoTV, NoWatch, NoMac, iOS (17, 0), MacCatalyst (17, 0)]
[NullAllowed, Export ("authorizationViewControllerPresenter")]
UIViewController AuthorizationViewControllerPresenter { get; set; }
}

delegate void HKStoreSampleAddedCallback (bool success, NSError error);
Expand Down

This file was deleted.

2 changes: 0 additions & 2 deletions tests/xtro-sharpie/iOS-HealthKitUI.todo

This file was deleted.