-
Notifications
You must be signed in to change notification settings - Fork 518
SharedWithYou tvOS xcode14.0 beta2
Manuel de la Pena edited this page Aug 30, 2022
·
3 revisions
#SharedWithYou.framework https://github.com/xamarin/xamarin-macios/pull/15819
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/NSItemProvider+SWCollaborationMetadata.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/NSItemProvider+SWCollaborationMetadata.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/NSItemProvider+SWCollaborationMetadata.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/NSItemProvider+SWCollaborationMetadata.h 2022-06-13 02:59:31.000000000 -0400
@@ -0,0 +1,15 @@
+// Copyright (c) 2022 Apple. All rights reserved.
+
+#import <Foundation/Foundation.h>
+#import <SharedWithYouCore/SWDefines.h>
+#import <SharedWithYouCore/SWCollaborationMetadata.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+SW_EXTERN @interface SWCollaborationMetadata (NSItemProvider) <NSItemProviderReading, NSItemProviderWriting>
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+SW_EXTERN NSString * const SWCollaborationMetadataTypeIdentifier;
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationBarButtonItem.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationBarButtonItem.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationBarButtonItem.h 2022-06-03 18:07:03.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationBarButtonItem.h 1969-12-31 19:00:00.000000000 -0500
@@ -1,35 +0,0 @@
-//
-// SWCollaborationBarButtonItem.h
-// SocialLayer
-//
-// Copyright (c) 2022 Apple. All rights reserved.
-//
-
-#import <SharedWithYouCore/SWDefines.h>
-
-#if TARGET_OS_IOS
-
-#import <UIKit/UIKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-//@available(iOS 16, macOS 13, *)
-//@available(watchOS, unavailable)
-//@available(tvOS, unavailable)
-@interface _SWCollaborationBarButtonItem : UIBarButtonItem
-
-@property (nonatomic, strong) NSItemProvider *itemProvider;
-@property (nonatomic, strong) id<UICloudSharingControllerDelegate> cloudSharingControllerDelegate;
-@property (nonatomic, assign) NSUInteger activeParticipantCount;
-@property (nonatomic, assign) BOOL isContentShared;
-
-- (instancetype)initWithItemProvider:(NSItemProvider *)itemProvider;
-
-- (void)dismissPopoverAnimated:(BOOL)animated completion:(void (^_Nullable)(void))completion;
-
-- (void)setDetailViewListContent:(UIView *)detailViewListContentView;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-#endif
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationButtonView.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationButtonView.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationButtonView.h 2022-05-27 00:11:20.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationButtonView.h 1969-12-31 19:00:00.000000000 -0500
@@ -1,45 +0,0 @@
-//
-// SWCollaborationButtonView.h
-// SocialLayer
-//
-// Copyright (c) 2022 Apple. All rights reserved.
-//
-
-#import <SharedWithYouCore/SWDefines.h>
-
-#if TARGET_OS_OSX
-#import <AppKit/AppKit.h>
-#else
-#import <UIKit/UIKit.h>
-#endif
-
-NS_ASSUME_NONNULL_BEGIN
-
-/*!
- @abstract A view that displays a `SWCollaborationDetailViewController` upon user interaction and attributes active collaborations associated with the given content to a conversation in Messages.
- */
-#if TARGET_OS_OSX
-@interface _SWCollaborationButtonView : NSView
-- (void)setDetailViewListContent:(NSView *)detailViewListContentView;
-#else
-@interface _SWCollaborationButtonView : UIView
-- (void)setDetailViewListContent:(UIView *)detailViewListContentView;
-#endif
-
-- (instancetype)initWithItemProvider:(NSItemProvider *)itemProvider;
-
-/*!
- @abstract sets the title of the manage participants button in the collaboration popover to the given string, defaults to "Manage Share"
- @param title localized string to display as the title for the manage participants button in the collaboration popover
-*/
-- (void)setManageButtonTitle:(NSString *)manageButtonTitle;
-
-/*!
- @abstract whether the collaboration popover should show the default manage participants button in the popover, defaults to YES
- @param showManageButton whether the button should be hidden
-*/
-- (void)setShowManageButton:(BOOL)showManageButton;
-
-@end
-
-NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationDetailViewController.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationDetailViewController.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationDetailViewController.h 2022-06-03 18:07:03.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationDetailViewController.h 1969-12-31 19:00:00.000000000 -0500
@@ -1,34 +0,0 @@
-//
-// SWCollaborationDetailViewController.h
-// SharedWithYou
-//
-// Copyright (c) 2022 Apple. All rights reserved.
-//
-
-#import <SharedWithYouCore/SWDefines.h>
-
-#if TARGET_OS_OSX
-#import <AppKit/AppKit.h>
-#else
-#import <UIKit/UIKit.h>
-#endif
-
-NS_ASSUME_NONNULL_BEGIN
-
-#if TARGET_OS_OSX
-//@available(macOS 13, *)
-//@available(iOS, unavailable)
-//@available(watchOS, unavailable)
-//@available(tvOS, unavailable)
-@interface _SWCollaborationDetailViewController : NSViewController
-#else
-//@available(iOS 16, *)
-//@available(macOS, unavailable)
-//@available(watchOS, unavailable)
-//@available(tvOS, unavailable)
-@interface _SWCollaborationDetailViewController : UIViewController
-#endif
-
-@end
-
-NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationHighlight.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationHighlight.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationHighlight.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationHighlight.h 2022-06-13 02:59:31.000000000 -0400
@@ -0,0 +1,49 @@
+//
+// SWCollaborationHighlight.h
+// SWCollaborationHighlight
+//
+// Copyright (c) 2021 Apple. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <SharedWithYouCore/SWDefines.h>
+#import <SharedWithYou/SWHighlight.h>
+
+#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class SWPersonIdentity;
+@class SWPersonIdentityProof;
+
+/*!
+ @class SWCollaborationHighlight
+ @abstract A SWHighlight object that represents an active collaboration
+ */
+SW_EXTERN @interface SWCollaborationHighlight : SWHighlight <NSSecureCoding, NSCopying>
+
+/*!
+ @abstract Unique identifier as provided by the app hosting the collaboration
+ @discussion This identifier is unique across platforms and shares
+ */
+@property (copy, readonly, nonatomic) NSString *collaborationIdentifier;
+
+/*!
+ @abstract Title of the collaboration highlight
+ @discussion Title of the collaboration if provided by the app hosting the collaboration
+ */
+@property (nullable, copy, readonly, nonatomic) NSString *title;
+
+/*!
+ @abstract Date when the file was created
+ */
+@property (copy, readonly, nonatomic) NSDate *creationDate;
+
+/*!
+ @abstract UTI type for this collaboration highlight
+ */
+@property (copy, readonly, nonatomic) UTType *contentType;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationToolbarItem.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationToolbarItem.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationToolbarItem.h 2022-06-03 18:07:03.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationToolbarItem.h 1969-12-31 19:00:00.000000000 -0500
@@ -1,32 +0,0 @@
-//
-// SWCollaborationToolbarItem.h
-// SharedWithYouMac
-//
-// Copyright (c) 2022 Apple. All rights reserved.
-//
-
-#import <SharedWithYouCore/SWDefines.h>
-
-#if TARGET_OS_OSX
-#import <AppKit/AppKit.h>
-
-NS_ASSUME_NONNULL_BEGIN
-//@available(macOS 13, *)
-//@available(iOS, unavailable)
-//@available(watchOS, unavailable)
-//@available(tvOS, unavailable)
-@interface _SWCollaborationToolbarItem : NSToolbarItem
-
-@property (nonatomic, strong) NSItemProvider *itemProvider;
-@property (nonatomic, assign) NSUInteger activeParticipantCount;
-@property (nonatomic, assign) BOOL isContentShared;
-
-- (instancetype)initWithItemProvider:(NSItemProvider *)itemProvider;
-
-- (void)dismissPopoverAnimated:(BOOL)animated completion:(void (^_Nullable)(void))completion;
-
-- (void)setDetailViewListContent:(NSView *)detailViewListContentView;
-@end
-
-NS_ASSUME_NONNULL_END
-#endif
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationView.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationView.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationView.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWCollaborationView.h 2022-06-13 02:59:31.000000000 -0400
@@ -0,0 +1,77 @@
+//
+// SWCollaborationView.h
+// SocialLayer
+//
+// Created by Ryan Williams on 4/21/22.
+//
+
+#import <SharedWithYouCore/SWDefines.h>
+
+#if TARGET_OS_OSX
+#import <AppKit/AppKit.h>
+#else
+#import <UIKit/UIKit.h>
+#endif
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class SWCollaborationView;
+
+@protocol SWCollaborationViewDelegate <NSObject>
+
+@optional
+- (BOOL)collaborationViewShouldPresentPopover:(SWCollaborationView *)collaborationView;
+- (void)collaborationViewWillPresentPopover:(SWCollaborationView *)collaborationView;
+- (void)collaborationViewDidDismissPopover:(SWCollaborationView *)collaborationView;
+
+@end
+
+
+#if TARGET_OS_OSX
+@interface SWCollaborationView : NSView
+@property (nullable, weak) id <NSCloudSharingServiceDelegate> cloudSharingDelegate;
+
+- (void)setContentView:(NSView *)detailViewListContentView;
+#else
+@interface SWCollaborationView : UIView
+@property (nonatomic, weak) id<UICloudSharingControllerDelegate> cloudSharingDelegate;
+
+- (void)setContentView:(UIView *)detailViewListContentView;
+#endif
+
+- (instancetype)initWithItemProvider:(NSItemProvider *)itemProvider;
+
+@property (nonatomic, assign) NSUInteger activeParticipantCount;
+
+@property (nonatomic, weak) id<SWCollaborationViewDelegate> delegate;
+
+@property (nonatomic, copy) NSString *headerTitle;
+@property (nonatomic, copy) NSString *headerSubtitle;
+#if TARGET_OS_OSX
+@property (nonatomic, strong) NSImage *headerImage;
+#else
+@property (nonatomic, strong) UIImage *headerImage;
+#endif
+
+
+/*!
+ @abstract Dismisses the popover, if presented.
+ @param completion Called when the popover dismissal finishes.
+*/
+- (void)dismissPopover:(nullable void (^)(void))completion;
+
+/*!
+ @abstract sets the title of the manage participants button in the collaboration popover to the given string, defaults to "Manage Share"
+ @param manageButtonTitle localized string to display as the title for the manage participants button in the collaboration popover
+*/
+@property (nonatomic, copy) NSString *manageButtonTitle;
+
+/*!
+ @abstract whether the collaboration popover should show the default manage participants button in the popover, defaults to YES
+ @param showManageButton whether the button should be hidden
+*/
+- (void)setShowManageButton:(BOOL)showManageButton;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlight.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlight.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlight.h 2022-05-27 00:11:20.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlight.h 2022-06-13 02:59:31.000000000 -0400
@@ -8,10 +8,6 @@
#import <Foundation/Foundation.h>
#import <SharedWithYouCore/SWDefines.h>
-/*
- WARNING: NON-FINAL API, DO NOT ADOPT WITHOUT PERMISSION FROM THE MESSAGES TEAM
- */
-
NS_ASSUME_NONNULL_BEGIN
/*!
@@ -36,7 +32,3 @@
@end
NS_ASSUME_NONNULL_END
-
-/*
- WARNING: NON-FINAL API, DO NOT ADOPT WITHOUT PERMISSION FROM THE MESSAGES TEAM
- */
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightCenter.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightCenter.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightCenter.h 2022-05-27 00:11:20.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightCenter.h 2022-06-13 02:56:18.000000000 -0400
@@ -7,12 +7,14 @@
#import <Foundation/Foundation.h>
#import <SharedWithYouCore/SWDefines.h>
#import <SharedWithYou/SWHighlight.h>
-//#import <SharedWithYou/SWCollaborationHighlight.h>
+#import <SharedWithYou/SWHighlightEvent.h>
+#import <SharedWithYouCore/SWCollaborationMetadata.h>
NS_ASSUME_NONNULL_BEGIN
+@class SWCollaborationHighlight;
@class SWHighlight;
@class SWHighlightCenter;
-@class SWCollaborationHighlight;
+@class SWSignedPersonIdentityProof;
/*!
@protocol SWHighlightCenterDelegate
@@ -49,6 +51,40 @@
*/
@property (class, nonatomic, readonly) NSString *highlightCollectionTitle;
+/// 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;
+
+/*!
+ @abstract A convience method to get a SWCollaborationHighlight for a given URL
+ @param URL The URL used to find the SWCollaborationHighlight
+ @param error The error describing the failure.
+*/
+- (SWCollaborationHighlight * __nullable)collaborationHighlightForURL:(NSURL *)URL error:(NSError **)error;
+
+/*!
+ @abstract A convience method to get a SWCollaborationHighlight for a given collaboration Identifier
+ @param collaborationIdentifier The unique identifier used to find the SWCollaborationHighlight
+ @param error The error describing the failure.
+*/
+- (SWCollaborationHighlight * __nullable)collaborationHighlightForIdentifier:(SWCollaborationIdentifier)collaborationIdentifier error:(NSError **)error;
+
+/*!
+ @abstract Method to sign passed in data with local device's private key
+ @param data NSData that needs to be signed
+ @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:));
+
+/*!
+ @abstract A convenience method to get a SWHighlight for a given URL
+ @param URL The URL used to find the SWHighlight
+ @param error The error describing the failure.
+ */
+- (SWHighlight * __nullable)highlightForURL:(NSURL *)URL error:(NSError **)error;
+
@end
NS_ASSUME_NONNULL_END
+
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightChangeEvent.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightChangeEvent.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightChangeEvent.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightChangeEvent.h 2022-06-13 02:59:31.000000000 -0400
@@ -0,0 +1,35 @@
+// Copyright (c) 2022 Apple. All rights reserved.
+
+#import <Foundation/Foundation.h>
+#import <SharedWithYou/SWHighlight.h>
+#import <SharedWithYou/SWHighlightEvent.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NS_ENUM(NSInteger, SWHighlightChangeEventTrigger) {
+ SWHighlightChangeEventTriggerEdit = 1,
+ SWHighlightChangeEventTriggerComment = 2,
+};
+
+/*!
+ @class SWHighlightChangeEvent
+ @abstract A model object representing activity that has happened on some content.
+ */
+SW_EXTERN @interface SWHighlightChangeEvent : NSObject <SWHighlightEvent>
+
+// The type of change event for the highlight.
+@property (nonatomic, readonly, assign) SWHighlightChangeEventTrigger changeEventTrigger;
+
+/// Initializes a highlight change event object to represent changes to a highlight.
+/// @param highlight The object on which the event occurred.
+/// @param trigger The trigger change event for the highlight.
+- (instancetype)initWithHighlight:(SWHighlight *)highlight trigger:(SWHighlightChangeEventTrigger)trigger;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@property (nonatomic, readonly, copy) NSURL *highlightURL;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightEvent.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightEvent.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightEvent.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightEvent.h 2022-06-13 02:59:31.000000000 -0400
@@ -0,0 +1,18 @@
+// Copyright (c) 2022 Apple. All rights reserved.
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/*!
+ @protocol SWHighlightEvent
+ @abstract A protocol defining an activity that can be posted in response to a user action on some content.
+ */
+@protocol SWHighlightEvent <NSObject, NSSecureCoding, NSCopying>
+
+@required
+@property (nonatomic, readonly, copy) NSURL *highlightURL;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMembershipEvent.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMembershipEvent.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMembershipEvent.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMembershipEvent.h 2022-06-13 02:59:31.000000000 -0400
@@ -0,0 +1,33 @@
+// Copyright (c) 2022 Apple. All rights reserved.
+
+#import <Foundation/Foundation.h>
+#import <SharedWithYou/SWHighlight.h>
+#import <SharedWithYou/SWHighlightEvent.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NS_ENUM(NSInteger, SWHighlightMembershipEventTrigger) {
+ SWHighlightMembershipEventTriggerAddedCollaborator = 1,
+ SWHighlightMembershipEventTriggerRemovedCollaborator = 2,
+};
+
+/*!
+ @class SWHighlightMembershipEvent
+ @abstract A model object representing a membership event that has happened on some content.
+ */
+SW_EXTERN @interface SWHighlightMembershipEvent : NSObject <SWHighlightEvent>
+
+/// The type of membership event for the highlight.
+@property (nonatomic, readonly, assign) SWHighlightMembershipEventTrigger membershipEventTrigger;
+
+/// Initializes a highlight membership event object to represent changes to a highlight membership.
+/// @param highlight The object on which the event occurred.
+/// @param trigger The trigger membership event for the highlight.
+- (instancetype)initWithHighlight:(SWHighlight *)highlight trigger:(SWHighlightMembershipEventTrigger)trigger;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMentionEvent.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMentionEvent.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMentionEvent.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightMentionEvent.h 2022-06-13 02:59:31.000000000 -0400
@@ -0,0 +1,41 @@
+//
+// SWHighlightMentionEvent_Private.h
+// SocialLayer
+//
+// Created by Elliot Barer on 2/7/22.
+//
+
+#import <Foundation/Foundation.h>
+#import <SharedWithYou/SWHighlight.h>
+#import <SharedWithYou/SWHighlightEvent.h>
+
+@class SWHighlight;
+@class SWPersonIdentity;
+
+NS_ASSUME_NONNULL_BEGIN
+
+/*!
+ @class _SWHighlightMentionEvent
+ @abstract A model object representing a mention event that has happened on some content.
+ */
+SW_EXTERN @interface SWHighlightMentionEvent : NSObject <SWHighlightEvent>
+
+/// The person being mentioned by the sender.
+@property (nonatomic, readonly, strong) NSString *mentionedPersonHandle;
+
+/// Initializes a highlight mention event object when the sender mentions another participant.
+/// @param highlight The object on which the event occurred.
+/// @param handle The CloudKit handle of the person being mentioned by the sender.
+- (instancetype)initWithHighlight:(SWHighlight *)highlight mentionedPersonCloudKitShareHandle:(NSString *)handle;
+
+/// Initializes a highlight mention event object when the sender mentions another participant.
+/// @param highlight The object on which the event occurred.
+/// @param identity The identity of the person being mentioned by the sender.
+- (instancetype)initWithHighlight:(SWHighlight *)highlight mentionedPersonIdentity:(SWPersonIdentity *)identity;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightPersistenceEvent.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightPersistenceEvent.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightPersistenceEvent.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWHighlightPersistenceEvent.h 2022-06-13 02:59:31.000000000 -0400
@@ -0,0 +1,36 @@
+// Copyright (c) 2022 Apple. All rights reserved.
+
+
+#import <Foundation/Foundation.h>
+#import <SharedWithYou/SWHighlight.h>
+#import <SharedWithYou/SWHighlightEvent.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NS_ENUM(NSInteger, SWHighlightPersistenceEventTrigger) {
+ SWHighlightPersistenceEventTriggerCreated = 1,
+ SWHighlightPersistenceEventTriggerDeleted = 2,
+ SWHighlightPersistenceEventTriggerRenamed = 3,
+ SWHighlightPersistenceEventTriggerMoved = 4,
+};
+
+/*!
+ @class SWHighlightPersistenceEvent
+ @abstract A model object representing a persistence event that has happened on some content.
+ */
+SW_EXTERN @interface SWHighlightPersistenceEvent : NSObject <SWHighlightEvent>
+
+// The type of persistence event for the highlight.
+@property (nonatomic, readonly, assign) SWHighlightPersistenceEventTrigger persistenceEventTrigger;
+
+/// Initializes a highlight persistence event object when the highlight persistence is changed.
+/// @param highlight The object on which the event occurred.
+/// @param trigger The trigger persistence event for the highlight.
+- (instancetype)initWithHighlight:(SWHighlight *)highlight trigger:(SWHighlightPersistenceEventTrigger)trigger;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWRemoveParticipantAlertController.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWRemoveParticipantAlertController.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWRemoveParticipantAlertController.h 2022-06-03 18:07:03.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SWRemoveParticipantAlertController.h 2022-06-17 14:48:56.000000000 -0400
@@ -7,16 +7,17 @@
#import <UIKit/UIKit.h>
#import <SharedWithYouCore/SWDefines.h>
+#import <SharedWithYouCore/SWPerson.h>
@class SWCollaborationHighlight;
-@class _SWPerson;
+@class SWPerson;
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(16.0), tvos(16.0)) API_UNAVAILABLE(watchos, macos)
SW_EXTERN @interface SWRemoveParticipantAlertController : UIViewController
-+ (instancetype)alertControllerWithParticipant:(_SWPerson *)participant highlight:(SWCollaborationHighlight *)highlight;
++ (instancetype)alertControllerWithParticipant:(SWPerson *)participant highlight:(SWCollaborationHighlight *)highlight;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SharedWithYou.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SharedWithYou.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SharedWithYou.h 2022-05-27 00:11:20.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/SharedWithYou.framework/Headers/SharedWithYou.h 2022-06-13 02:59:31.000000000 -0400
@@ -8,16 +8,24 @@
#import <SharedWithYouCore/SharedWithYouCore.h>
#import <SharedWithYou/SWErrors.h>
+#import <SharedWithYou/SWCollaborationHighlight.h>
#import <SharedWithYou/SWHighlight.h>
#import <SharedWithYou/SWHighlightCenter.h>
+#import <SharedWithYou/SWHighlightChangeEvent.h>
+#import <SharedWithYou/SWHighlightEvent.h>
+#import <SharedWithYou/SWHighlightMembershipEvent.h>
+#import <SharedWithYou/SWHighlightMentionEvent.h>
+#import <SharedWithYou/SWHighlightPersistenceEvent.h>
#import <SharedWithYou/SWAttributionView.h>
-#import <SharedWithYou/SWCollaborationButtonView.h>
-#import <SharedWithYou/SWCollaborationToolbarItem.h>
-#import <SharedWithYou/SWCollaborationBarButtonItem.h>
-#import <SharedWithYou/SWCollaborationDetailViewController.h>
+#import <SharedWithYou/SWCollaborationView.h>
+#import <SharedWithYou/NSItemProvider+SWCollaborationMetadata.h>
#if TARGET_OS_IPHONE
#import <SharedWithYou/SWRemoveParticipantAlertController.h>
#else
#import <SharedWithYou/SWRemoveParticipantAlert.h>
#endif
+
+#if TARGET_OS_OSX
+#import <SharedWithYou/NSPasteboardItem+SWCollaborationMetadata.h>
+#endif
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status