Skip to content

CoreLocationUI iOS xcode13.0 beta1

Manuel de la Pena edited this page Jun 18, 2021 · 3 revisions

#CoreLocationUI.framework https://github.com/xamarin/xamarin-macios/pull/11979

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreLocationUI.framework/Headers/CLLocationButton.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreLocationUI.framework/Headers/CLLocationButton.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreLocationUI.framework/Headers/CLLocationButton.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreLocationUI.framework/Headers/CLLocationButton.h	2021-06-02 12:45:53.000000000 -0400
@@ -0,0 +1,53 @@
+//
+//  CLLocationButton.h
+//  CoreLocationUI
+//
+//  Copyright (c) 2021 Apple Inc. All rights reserved.
+//
+
+#if __has_include(<UIKit/UIControl.h>)
+
+/*
+ *  CLLocationButtonIcon
+ *
+ *  Discussion:
+ *      Specifies the type of arrow icon on the button. Button must not be CLLocationButtonIconNone if CLLocationButtonLabel is CLLocationButtonLabelNone.
+ *
+ */
+typedef NS_ENUM(NSInteger, CLLocationButtonIcon) {
+	CLLocationButtonIconNone = 0,
+	CLLocationButtonIconArrowFilled,
+	CLLocationButtonIconArrowOutline,
+};
+
+/*
+ *  CLLocationButtonLabel
+ *
+ *  Discussion:
+ *      Specifies the text of the label on the button. Button must not be CLLocationButtonLabelNone if CLLocationButtonIcon is CLLocationButtonIconNone.
+ *
+ */
+typedef NS_ENUM(NSInteger, CLLocationButtonLabel) {
+	CLLocationButtonLabelNone = 0,
+	CLLocationButtonLabelCurrentLocation,
+	CLLocationButtonLabelSendCurrentLocation,
+	CLLocationButtonLabelSendMyCurrentLocation,
+	CLLocationButtonLabelShareCurrentLocation,
+	CLLocationButtonLabelShareMyCurrentLocation,
+};
+
+/*
+ *  CLLocationButton
+ *
+ *  Discussion:
+ *    CLLocationButton is a UIControl that, in addition to functioning much like a UIButton, may grant a one-time authorization of the device's current location when pressed.
+ */
+API_AVAILABLE(ios(15.0),watchos(8.0))
+@interface CLLocationButton : UIControl <NSSecureCoding>
+@property (nonatomic, readwrite) CLLocationButtonIcon icon;
+@property (nonatomic, readwrite) CLLocationButtonLabel label;
+@property (nonatomic, readwrite) CGFloat fontSize;
+@property (nonatomic, readwrite) CGFloat cornerRadius;
+@end
+
+#endif
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreLocationUI.framework/Headers/CoreLocationUI.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreLocationUI.framework/Headers/CoreLocationUI.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreLocationUI.framework/Headers/CoreLocationUI.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreLocationUI.framework/Headers/CoreLocationUI.h	2021-06-01 22:22:35.000000000 -0400
@@ -0,0 +1,19 @@
+//
+//  CoreLocationUI.h
+//  CoreLocationUI
+//
+//  Copyright (c) 2021 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
+
+// In this header, you should import all the public headers of your framework using statements like #import <CoreLocationUI/PublicHeader.h>
+
+//! Project version number for CoreLocationUI.
+FOUNDATION_EXPORT double CoreLocationUIVersionNumber;
+
+//! Project version string for CoreLocationUI.
+FOUNDATION_EXPORT const unsigned char CoreLocationUIVersionString[];
+
+#import <CoreLocationUI/CLLocationButton.h>
Clone this wiki locally