Skip to content

SharedWithYou iOS xcode14.0 beta5

Manuel de la Pena edited this page Aug 30, 2022 · 2 revisions

#SharedWithYou.framework https://github.com/xamarin/xamarin-macios/pull/15819

diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/NSItemProvider+SWCollaborationMetadata.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/NSItemProvider+SWCollaborationMetadata.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/NSItemProvider+SWCollaborationMetadata.h	2022-07-25 15:36:31.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/NSItemProvider+SWCollaborationMetadata.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //  Copyright (c) 2022 Apple. All rights reserved.
 
 #import <Foundation/Foundation.h>
@@ -6,11 +8,13 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos)
+API_AVAILABLE(ios(16.0), macos(13.0))
 SW_EXTERN @interface SWCollaborationMetadata (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting>
 
 @end
 
 NS_ASSUME_NONNULL_END
 
-SW_EXTERN NSString * const SWCollaborationMetadataTypeIdentifier;
+SW_EXTERN NSString * const SWCollaborationMetadataTypeIdentifier API_AVAILABLE(ios(16.0), macos(13.0));
+
+#endif // !TARGET_OS_TV
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWAttributionView.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWAttributionView.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWAttributionView.h	2022-07-25 15:33:33.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWAttributionView.h	2022-08-06 03:28:43.000000000 -0400
@@ -32,7 +32,7 @@
     SWAttributionViewDisplayContextSummary = 0,
     /// Indicates that the attributed content shown along with this view is being actively consumed by the user
     SWAttributionViewDisplayContextDetail,
-} NS_SWIFT_NAME(SWAttributionView.DisplayContext);
+} NS_SWIFT_NAME(SWAttributionView.DisplayContext) API_AVAILABLE(ios(16.0), macos(13.0), tvos(16.0));
 
 /*!
     @abstract The horizontal alignment of SWAttributionView's contents
@@ -46,7 +46,7 @@
     SWAttributionViewHorizontalAlignmentCenter,
     /// Horizontally align with the trailing edge of the view (depends on the user interface layout direction)
     SWAttributionViewHorizontalAlignmentTrailing
-} NS_SWIFT_NAME(SWAttributionView.HorizontalAlignment);
+} NS_SWIFT_NAME(SWAttributionView.HorizontalAlignment) API_AVAILABLE(ios(16.0), macos(13.0), tvos(16.0));
 
 /*!
     @abstract The background styling of SWAttributionView's contents
@@ -58,7 +58,7 @@
     SWAttributionViewBackgroundStyleColor,
     /// A material background blur for the view's contents, best when placed over multicolored backgrounds
     SWAttributionViewBackgroundStyleMaterial
-} NS_SWIFT_NAME(SWAttributionView.BackgroundStyle);
+} NS_SWIFT_NAME(SWAttributionView.BackgroundStyle) API_AVAILABLE(ios(16.0), macos(13.0), tvos(16.0));
 
 /*!
      @class SWAttributionView
@@ -67,8 +67,10 @@
  */
 
 #if TARGET_OS_OSX
+API_AVAILABLE(macos(13.0))
 SW_EXTERN @interface SWAttributionView : NSView
 #else
+API_AVAILABLE(ios(16.0), tvos(16.0))
 SW_EXTERN @interface SWAttributionView : UIView
 #endif
 
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationHighlight.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationHighlight.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationHighlight.h	2022-07-25 15:36:31.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationHighlight.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //
 //  SWCollaborationHighlight.h
 //  SWCollaborationHighlight
@@ -20,7 +22,7 @@
      @class SWCollaborationHighlight
      @abstract A SWHighlight object that represents an active collaboration
  */
-API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos)
+API_AVAILABLE(ios(16.0), macos(13.0))
 SW_EXTERN @interface SWCollaborationHighlight : SWHighlight <NSSecureCoding, NSCopying>
 
 /*!
@@ -48,3 +50,5 @@
 @end
 
 NS_ASSUME_NONNULL_END
+
+#endif // !TARGET_OS_TV
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationView.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationView.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationView.h	2022-07-20 00:39:55.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationView.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //
 //  SWCollaborationView.h
 //  SocialLayer
@@ -17,6 +19,7 @@
 
 @class SWCollaborationView;
 
+API_AVAILABLE(ios(16.0), macos(13.0))
 @protocol SWCollaborationViewDelegate <NSObject>
 
 @optional
@@ -28,11 +31,13 @@
 
 
 #if TARGET_OS_OSX
+API_AVAILABLE(macos(13.0))
 @interface SWCollaborationView : NSView
 @property (nullable, weak) id <NSCloudSharingServiceDelegate> cloudSharingDelegate;
 
 - (void)setContentView:(NSView *)detailViewListContentView;
 #else
+API_AVAILABLE(ios(16.0))
 @interface SWCollaborationView : UIView
 
 #if !TARGET_OS_TV
@@ -88,3 +93,5 @@
 @end
 
 NS_ASSUME_NONNULL_END
+
+#endif // !TARGET_OS_TV
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWErrors.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWErrors.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWErrors.h	2022-07-20 00:39:55.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWErrors.h	2022-08-05 16:55:43.000000000 -0400
@@ -13,4 +13,4 @@
     SWHighlightCenterErrorCodeInternalError,
     SWHighlightCenterErrorCodeInvalidURL,
     SWHighlightCenterErrorCodeAccessDenied,
-};
+} API_AVAILABLE(ios(16.0), macos(13.0), tvos(16.0));
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlight.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlight.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlight.h	2022-07-20 00:39:55.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlight.h	2022-08-05 16:55:43.000000000 -0400
@@ -15,6 +15,7 @@
      @abstract A model object representing a universal link shared by any number of contacts, in any number of conversations. The identities of the contacts are not exposed to the application.
      @discussion The system tracks universal links shared with the current user, and decides which links to elevate for consumption in an app. When the system deems a link to be useful, it surfaces that link to the hosting app in the form of an `SWHighlight` object. Only universal links can be surfaced in this way.
  */
+API_AVAILABLE(ios(16.0), macos(13.0), tvos(16.0))
 SW_EXTERN @interface SWHighlight : NSObject <NSSecureCoding, NSCopying>
 
 /*!
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightCenter.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightCenter.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightCenter.h	2022-07-22 10:05:35.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightCenter.h	2022-08-06 03:26:53.000000000 -0400
@@ -36,7 +36,7 @@
      @abstract Provides the application with a priority-ordered list of universal links which have been shared with the current user.
      @discussion The system decides which links should be surfaced. The app is responsible for updating its UI to reflect the latest provided list.
  */
-API_AVAILABLE(ios(16.0), tvos(16.0), macos(13.0))
+API_AVAILABLE(ios(16.0), macos(13.0), tvos(16.0))
 SW_EXTERN @interface SWHighlightCenter : NSObject
 
 /*!
@@ -70,6 +70,7 @@
     @param collaborationIdentifier The unique identifier used to find the SWCollaborationHighlight
     @param error The error describing the failure.
 */
+#if !TARGET_OS_TV
 - (SWCollaborationHighlight * __nullable)collaborationHighlightForIdentifier:(SWCollaborationIdentifier)collaborationIdentifier error:(NSError **)error;
 
 /*!
@@ -77,13 +78,13 @@
  @param URL The URL used to find the SWCollaborationHighlight
  @param completionHandler  an SWCollaborationHighlight if it was fetched. The completion handler will always be invoked on the main queue
  */
-- (void)getCollaborationHighlightForURL:(NSURL *)URL completionHandler:(void (^)(SWCollaborationHighlight * _Nullable highlight, NSError * _Nullable fetchError))completionHandler;
+- (void)getCollaborationHighlightForURL:(NSURL *)URL completionHandler:(void (^)(SWCollaborationHighlight * _Nullable highlight, NSError * _Nullable fetchError))completionHandler API_AVAILABLE(ios(16.0), macos(13.0));
 
 /*!
     @abstract Post a given event to the highlight center for display in Messages.
     @param event The event to add for a specific highlight
  */
-- (void)postNoticeForHighlightEvent:(id<SWHighlightEvent>)event;
+- (void)postNoticeForHighlightEvent:(id<SWHighlightEvent>)event API_AVAILABLE(ios(16.0), macos(13.0));
 
 /*!
     @abstract Method to sign passed in data with local device's private key
@@ -91,7 +92,8 @@
     @param collaborationHighlight The corresponding collaboration highlight.
     @param completionHandler Signed data along with proof of inclusion for merkle if signing succeeded, otherwise an error. The completion handler will always be invoked on main queue
  */
-- (void)getSignedIdentityProofForCollaborationHighlight:(SWCollaborationHighlight *)collaborationHighlight usingData:(NSData *)data completionHandler:(void (^)(SWSignedPersonIdentityProof * _Nullable, NSError * _Nullable))completionHandler NS_SWIFT_ASYNC_NAME(signedIdentityProof(for:using:));
+- (void)getSignedIdentityProofForCollaborationHighlight:(SWCollaborationHighlight *)collaborationHighlight usingData:(NSData *)data completionHandler:(void (^)(SWSignedPersonIdentityProof * _Nullable, NSError * _Nullable))completionHandler NS_SWIFT_ASYNC_NAME(signedIdentityProof(for:using:)) API_AVAILABLE(ios(16.0), macos(13.0));
+#endif // !TARGET_OS_TV
 
 @end
 
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightChangeEvent.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightChangeEvent.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightChangeEvent.h	2022-07-25 15:36:31.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightChangeEvent.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //  Copyright (c) 2022 Apple. All rights reserved.
 
 #import <Foundation/Foundation.h>
@@ -9,13 +11,13 @@
 typedef NS_ENUM(NSInteger, SWHighlightChangeEventTrigger) {
     SWHighlightChangeEventTriggerEdit = 1,
     SWHighlightChangeEventTriggerComment = 2,
-} API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos);
+} API_AVAILABLE(ios(16.0), macos(13.0));
 
 /*!
  @class SWHighlightChangeEvent
  @abstract A model object representing activity that has happened on some content.
  */
-API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos)
+API_AVAILABLE(ios(16.0), macos(13.0))
 SW_EXTERN @interface SWHighlightChangeEvent : NSObject <SWHighlightEvent>
 
 // The type of change event for the highlight.
@@ -34,3 +36,5 @@
 @end
 
 NS_ASSUME_NONNULL_END
+
+#endif // !TARGET_OS_TV
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightEvent.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightEvent.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightEvent.h	2022-07-25 15:36:30.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightEvent.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //  Copyright (c) 2022 Apple. All rights reserved.
 
 #import <Foundation/Foundation.h>
@@ -8,7 +10,7 @@
  @protocol SWHighlightEvent
  @abstract A protocol defining an activity that can be posted in response to a user action on some content.
  */
-API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos)
+API_AVAILABLE(ios(16.0), macos(13.0))
 @protocol SWHighlightEvent <NSObject, NSSecureCoding, NSCopying>
 
 @required
@@ -17,3 +19,5 @@
 @end
 
 NS_ASSUME_NONNULL_END
+
+#endif // !TARGET_OS_TV
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMembershipEvent.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMembershipEvent.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMembershipEvent.h	2022-07-25 15:36:31.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMembershipEvent.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //  Copyright (c) 2022 Apple. All rights reserved.
 
 #import <Foundation/Foundation.h>
@@ -9,13 +11,13 @@
 typedef NS_ENUM(NSInteger, SWHighlightMembershipEventTrigger) {
     SWHighlightMembershipEventTriggerAddedCollaborator = 1,
     SWHighlightMembershipEventTriggerRemovedCollaborator = 2,
-} API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos);
+} API_AVAILABLE(ios(16.0), macos(13.0));
 
 /*!
  @class SWHighlightMembershipEvent
  @abstract A model object representing a membership event that has happened on some content.
  */
-API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos)
+API_AVAILABLE(ios(16.0), macos(13.0))
 SW_EXTERN @interface SWHighlightMembershipEvent : NSObject <SWHighlightEvent>
 
 /// The type of membership event for the highlight.
@@ -32,3 +34,5 @@
 @end
 
 NS_ASSUME_NONNULL_END
+
+#endif // !TARGET_OS_TV
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMentionEvent.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMentionEvent.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMentionEvent.h	2022-07-25 15:36:30.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMentionEvent.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //
 //  SWHighlightMentionEvent_Private.h
 //  SocialLayer
@@ -18,7 +20,7 @@
  @class _SWHighlightMentionEvent
  @abstract A model object representing a mention event that has happened on some content.
  */
-API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos)
+API_AVAILABLE(ios(16.0), macos(13.0))
 SW_EXTERN @interface SWHighlightMentionEvent : NSObject <SWHighlightEvent>
 
 /// The person being mentioned by the sender.
@@ -40,3 +42,5 @@
 @end
 
 NS_ASSUME_NONNULL_END
+
+#endif // !TARGET_OS_TV
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightPersistenceEvent.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightPersistenceEvent.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightPersistenceEvent.h	2022-07-25 15:36:30.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightPersistenceEvent.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //  Copyright (c) 2022 Apple. All rights reserved.
 
 
@@ -12,13 +14,13 @@
     SWHighlightPersistenceEventTriggerDeleted = 2,
     SWHighlightPersistenceEventTriggerRenamed = 3,
     SWHighlightPersistenceEventTriggerMoved = 4,
-} API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos);
+} API_AVAILABLE(ios(16.0), macos(13.0));
 
 /*!
  @class SWHighlightPersistenceEvent
  @abstract A model object representing a persistence event that has happened on some content.
  */
-API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos)
+API_AVAILABLE(ios(16.0), macos(13.0))
 SW_EXTERN @interface SWHighlightPersistenceEvent : NSObject <SWHighlightEvent>
 
 // The type of persistence event for the highlight.
@@ -35,3 +37,5 @@
 @end
 
 NS_ASSUME_NONNULL_END
+
+#endif // !TARGET_OS_TV
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWRemoveParticipantAlertController.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWRemoveParticipantAlertController.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWRemoveParticipantAlertController.h	2022-07-25 15:36:31.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWRemoveParticipantAlertController.h	2022-08-05 16:55:43.000000000 -0400
@@ -1,3 +1,5 @@
+#import <TargetConditionals.h>
+#if !TARGET_OS_TV
 //
 //  SWRemoveParticipantAlertController.h
 //  SWRemoveParticipantAlertController
@@ -14,7 +16,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(watchos, tvos)
+API_AVAILABLE(ios(16.0))
 SW_EXTERN @interface SWRemoveParticipantAlertController : UIViewController
 
 + (instancetype)alertControllerWithParticipant:(SWPerson *)participant highlight:(SWCollaborationHighlight *)highlight;
@@ -25,3 +27,5 @@
 @end
 
 NS_ASSUME_NONNULL_END
+
+#endif // !TARGET_OS_TV
Clone this wiki locally