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

[MapKit] Add support for Xcode 14 beta 1 & 2 & 5 #15562

Merged
merged 6 commits into from Oct 12, 2022
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
61 changes: 60 additions & 1 deletion src/MapKit/MKEnums.cs
Expand Up @@ -112,7 +112,14 @@ public enum MKPinAnnotationColor : ulong {
[NoWatch]
[Native]
public enum MKUserTrackingMode : ulong {
None, Follow, FollowWithHeading
None,
Follow,
#if !XAMCORE_5_0 && !(IOS || MACCATALYST)
[Obsolete ("This is only available on iOS and MacCatalyst.")]
FollowWithHeading,
#elif IOS || MACCATALYST
FollowWithHeading,
#endif
}

[TV (9,2)][NoWatch][iOS (9,3)]
Expand Down Expand Up @@ -168,6 +175,58 @@ public enum MKLocalSearchResultType : ulong
PointOfInterest = 1 << 1,
}

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[Native]
public enum MKDirectionsRoutePreference : long
{
Any = 0,
Avoid,
}

[Flags]
[NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
[Native]
public enum MKMapFeatureOptions : long
{
PointsOfInterest = 1 << (int)MKMapFeatureType.PointOfInterest,
Territories = 1 << (int)MKMapFeatureType.Territory,
PhysicalFeatures = 1 << (int)MKMapFeatureType.PhysicalFeature,
}

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
[Native]
public enum MKLookAroundBadgePosition : long
{
TopLeading = 0,
TopTrailing,
BottomTrailing,
}

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[Native]
public enum MKMapElevationStyle : long
{
Flat = 0,
Realistic,
}

[NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
[Native]
public enum MKMapFeatureType : long
{
PointOfInterest = 0,
Territory,
PhysicalFeature,
}

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[Native]
public enum MKStandardMapEmphasisStyle : long
{
Default = 0,
Muted,
}

#if !WATCH
[TV (13, 0), NoWatch, Mac (10, 15), iOS (13, 0)]
public enum MKPointOfInterestCategory {
Expand Down