Skip to content

Commit

Permalink
[MapKit] Add support for Xcode 14 beta 1 & 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Soto committed Jul 29, 2022
1 parent 4276c90 commit e7730e5
Show file tree
Hide file tree
Showing 16 changed files with 413 additions and 498 deletions.
61 changes: 60 additions & 1 deletion src/MapKit/MKEnums.cs
Original file line number Diff line number Diff line change
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
Loading

0 comments on commit e7730e5

Please sign in to comment.