Skip to content

DataDetection iOS xcode13.0 beta5

Manuel de la Pena edited this page Aug 16, 2021 · 3 revisions

#DataDetection.framework ##mandel

diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDDetectedValue.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDDetectedValue.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDDetectedValue.h	2021-07-22 14:22:17.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDDetectedValue.h	1969-12-31 19:00:00.000000000 -0500
@@ -1,63 +0,0 @@
-//
-//  DDDetectedValue.h
-//  DataDetection
-//
-//  Copyright © 2021 Apple Inc. All rights reserved.
-//
-
-#import <DataDetection/DataDetectionBase.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValue : NSObject
-@property(nonatomic, readonly) NSString *matchedString;
-@property(nonatomic, readonly) NSRange matchedRange;
-- (instancetype)init NS_UNAVAILABLE;
-@end
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueLink : DDDetectedValue
-@property(nonatomic, readonly) NSURL *URL;
-@end
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValuePhoneNumber : DDDetectedValue
-@property(nonatomic, readonly) NSString *phoneNumber;
-@property(nonatomic, readonly, nullable) NSString *label;
-@end
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueEmailAddress : DDDetectedValue
-@property(nonatomic, readonly) NSString *emailAddress;
-@property(nonatomic, readonly, nullable) NSString *label;
-@end
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValuePostalAddress : DDDetectedValue
-@property(nonatomic, readonly, nullable) NSString *street;
-@property(nonatomic, readonly, nullable) NSString *city;
-@property(nonatomic, readonly, nullable) NSString *state;
-@property(nonatomic, readonly, nullable) NSString *postalCode;
-@property(nonatomic, readonly, nullable) NSString *country;
-@end
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueCalendarEvent : DDDetectedValue
-@property(nonatomic, readonly, getter=isAllDay) BOOL allDay;
-@property(nonatomic, readonly, nullable) NSDate *startDate;
-@property(nonatomic, readonly, nullable) NSTimeZone *startTimeZone;
-@property(nonatomic, readonly, nullable) NSDate *endDate;
-@property(nonatomic, readonly, nullable) NSTimeZone *endTimeZone;
-@end
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueShipmentTrackingNumber : DDDetectedValue
-@property(nonatomic, readonly) NSString *carrier;
-@property(nonatomic, readonly) NSString *trackingNumber;
-@end
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueFlightNumber : DDDetectedValue
-@property(nonatomic, readonly) NSString *airline;
-@property(nonatomic, readonly) NSString *flightNumber;
-@end
-
-DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDDetectedValueMoneyAmount : DDDetectedValue
-@property(nonatomic, readonly) NSString *currency;
-@property(nonatomic, readonly) double amount;
-@end
-
-NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDMatch.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDMatch.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDMatch.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DDMatch.h	2021-08-09 03:25:23.000000000 -0400
@@ -0,0 +1,62 @@
+//
+//  DDMatch.h
+//  DataDetection
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <DataDetection/DataDetectionBase.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatch : NSObject
+@property(nonatomic, readonly) NSString *matchedString;
+- (instancetype)init NS_UNAVAILABLE;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatchLink : DDMatch
+@property(nonatomic, readonly) NSURL *URL;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatchPhoneNumber : DDMatch
+@property(nonatomic, readonly) NSString *phoneNumber;
+@property(nonatomic, readonly, nullable) NSString *label;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatchEmailAddress : DDMatch
+@property(nonatomic, readonly) NSString *emailAddress;
+@property(nonatomic, readonly, nullable) NSString *label;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatchPostalAddress : DDMatch
+@property(nonatomic, readonly, nullable) NSString *street;
+@property(nonatomic, readonly, nullable) NSString *city;
+@property(nonatomic, readonly, nullable) NSString *state;
+@property(nonatomic, readonly, nullable) NSString *postalCode;
+@property(nonatomic, readonly, nullable) NSString *country;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatchCalendarEvent : DDMatch
+@property(nonatomic, readonly, getter=isAllDay) BOOL allDay;
+@property(nonatomic, readonly, nullable) NSDate *startDate;
+@property(nonatomic, readonly, nullable) NSTimeZone *startTimeZone;
+@property(nonatomic, readonly, nullable) NSDate *endDate;
+@property(nonatomic, readonly, nullable) NSTimeZone *endTimeZone;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatchShipmentTrackingNumber : DDMatch
+@property(nonatomic, readonly) NSString *carrier;
+@property(nonatomic, readonly) NSString *trackingNumber;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatchFlightNumber : DDMatch
+@property(nonatomic, readonly) NSString *airline;
+@property(nonatomic, readonly) NSString *flightNumber;
+@end
+
+DD_EXTERN API_AVAILABLE(ios(15.0)) @interface DDMatchMoneyAmount : DDMatch
+@property(nonatomic, readonly) NSString *currency;
+@property(nonatomic, readonly) double amount;
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetection.h /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetection.h
--- /Applications/Xcode_13.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetection.h	2021-07-16 21:26:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DataDetection.framework/Headers/DataDetection.h	2021-08-02 08:37:21.000000000 -0400
@@ -8,5 +8,5 @@
 #import <Foundation/Foundation.h>
 
 #import <DataDetection/DataDetectionBase.h>
-#import <DataDetection/DDDetectedValue.h>
+#import <DataDetection/DDMatch.h>
 
Clone this wiki locally