Skip to content

TVUIKit tvOS xcode13.0 beta1

Alex Soto edited this page Sep 13, 2021 · 2 revisions

#TVUIKit.framework

Alex

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMediaItemContentConfiguration.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMediaItemContentConfiguration.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMediaItemContentConfiguration.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMediaItemContentConfiguration.h	2021-06-02 05:34:07.000000000 -0400
@@ -0,0 +1,126 @@
+//
+//  TVMediaItemContentConfiguration.h
+//  TVUIKit
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <TVUIKit/TVUIKitDefines.h>
+
+typedef NS_ENUM(NSInteger, TVMediaItemContentTextTransform) {
+    TVMediaItemContentTextTransformNone,
+    TVMediaItemContentTextTransformUppercase,
+    TVMediaItemContentTextTransformLowercase,
+    TVMediaItemContentTextTransformCapitalized
+} API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios) NS_REFINED_FOR_SWIFT;
+
+@class TVMediaItemContentTextProperties, TVMediaItemContentBadgeProperties;
+
+NS_ASSUME_NONNULL_BEGIN
+
+TV_EXTERN API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios) NS_REFINED_FOR_SWIFT
+@interface TVMediaItemContentConfiguration : NSObject <UIContentConfiguration, NSSecureCoding>
+
+/// Returns the default configuration for a wide cell with a 16:9 aspect ratio.
++ (instancetype)wideCellConfiguration;
+
+/// The image to display.
+@property (nonatomic, strong, nullable) UIImage *image;
+
+/// The primary text.
+@property (nonatomic, copy, nullable) NSString *text;
+/// Additional properties to configure the primary text.
+@property (nonatomic, readonly) TVMediaItemContentTextProperties *textProperties;
+
+/// The secondary text.
+@property (nonatomic, copy, nullable) NSString *secondaryText;
+/// Additional properties to configure the secondary text.
+@property (nonatomic, readonly) TVMediaItemContentTextProperties *secondaryTextProperties;
+
+/// Playback progress to display. Value is clamped between 0.0 and 1.0.
+@property (nonatomic, assign) float playbackProgress;
+
+/// Optional text to display in a badge that is displayed in the top corner of the content.
+@property (nonatomic, copy, nullable) NSString *badgeText;
+/// Additional properties to configure the badge.
+@property (nonatomic, copy) TVMediaItemContentBadgeProperties *badgeProperties;
+
+/// The overlayView will be placed above the image, and automatically resized to fill frame.
+/// Enable preservesSuperviewLayoutMargins to inherit layoutMargins.
+@property (nonatomic, strong, nullable) UIView *overlayView;
+
++ (instancetype)new NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+TV_EXTERN API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios)
+@interface TVMediaItemContentView : UIView <UIContentView>
+
+- (instancetype)initWithConfiguration:(TVMediaItemContentConfiguration *)configuration NS_DESIGNATED_INITIALIZER NS_REFINED_FOR_SWIFT;
+
+@property (nonatomic, copy) TVMediaItemContentConfiguration *configuration NS_REFINED_FOR_SWIFT;
+
+/// The content view may display itself in a larger frame when focused.
+/// This layout guide can be used to align other elements with the image view's focused frame.
+@property (nonatomic, strong, readonly) UILayoutGuide *focusedFrameGuide;
+
+- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+TV_EXTERN API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios) NS_REFINED_FOR_SWIFT
+@interface TVMediaItemContentTextProperties : NSObject <NSCopying, NSSecureCoding>
+
+/// The font used for the text.
+@property (nonatomic, copy) UIFont *font;
+
+/// The color of the text.
+@property (nonatomic, copy) UIColor *color;
+
+/// A transform that is applied to the text before it is displayed.
+@property (nonatomic) TVMediaItemContentTextTransform transform;
+
++ (instancetype)new NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+TV_EXTERN API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios) NS_REFINED_FOR_SWIFT
+@interface TVMediaItemContentBadgeProperties : NSObject <NSCopying, NSSecureCoding>
+
+/// Returns the properties for a default styled badge.
++ (instancetype)defaultBadgeProperties;
+
+/// Returns the properties for a badge representing live content.
++ (instancetype)liveContentBadgeProperties;
+
+/// The background tint color of the badge.
+@property (nonatomic, copy) UIColor *backgroundColor;
+
+/// The font used for the badge text.
+@property (nonatomic, copy) UIFont *font;
+
+/// The color of the badge text.
+@property (nonatomic, copy) UIColor *color;
+
+/// A transform that is applied to the badge text before it is displayed.
+@property (nonatomic, assign) TVMediaItemContentTextTransform transform;
+
++ (instancetype)new NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+TV_EXTERN API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios)
+@interface NSCollectionLayoutSection (TVMediaItemContentConfiguration)
+
+/// Creates an orthogonal scrolling section with the system default sizing and spacing.
++ (NSCollectionLayoutSection *)orthogonalLayoutSectionForMediaItems;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMonogramContentConfiguration.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMonogramContentConfiguration.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMonogramContentConfiguration.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMonogramContentConfiguration.h	2021-06-02 05:34:07.000000000 -0400
@@ -0,0 +1,74 @@
+//
+//  TVMonogramContentConfiguration.h
+//  TVUIKit
+//
+//  Created by Nathan Wood on 08/04/21.
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <TVUIKit/TVUIKitDefines.h>
+
+@class TVMonogramContentTextProperties;
+
+NS_ASSUME_NONNULL_BEGIN
+
+TV_EXTERN API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios) NS_REFINED_FOR_SWIFT
+@interface TVMonogramContentConfiguration : NSObject <UIContentConfiguration, NSSecureCoding>
+
+/// Returns the default configuration for a circular monogram cell.
++ (instancetype)cellConfiguration;
+
+/// The image to display.
+@property (nonatomic, strong, nullable) UIImage *image;
+
+/// The primary text.
+@property (nonatomic, copy, nullable) NSString *text;
+/// Additional properties to configure the primary text.
+@property (nonatomic, readonly) TVMonogramContentTextProperties *textProperties;
+
+/// The secondary text.
+@property (nonatomic, copy, nullable) NSString *secondaryText;
+/// Additional properties to configure the secondary text.
+@property (nonatomic, readonly) TVMonogramContentTextProperties *secondaryTextProperties;
+
+/// If no image is provided then a monogram is created for display using the personNameComponents.
+@property (nonatomic, copy, nullable) NSPersonNameComponents *personNameComponents;
+
++ (instancetype)new NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios)
+@interface TVMonogramContentView : UIView <UIContentView>
+
+- (instancetype)initWithConfiguration:(TVMonogramContentConfiguration *)configuration NS_DESIGNATED_INITIALIZER NS_REFINED_FOR_SWIFT;
+
+@property (nonatomic, copy) TVMonogramContentConfiguration *configuration;
+
+/// The content view may display itself in a larger frame when focused.
+/// This layout guide can be used to align other elements with the content view image's focused frame.
+@property (nonatomic, strong, readonly) UILayoutGuide *focusedFrameGuide;
+
+- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
+
+API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(macos, watchos, ios) NS_REFINED_FOR_SWIFT
+@interface TVMonogramContentTextProperties : NSObject <NSCopying, NSSecureCoding>
+
+/// The font used for the text.
+@property (nonatomic, copy) UIFont *font;
+
+/// The color of the text.
+@property (nonatomic, copy) UIColor *color;
+
++ (instancetype)new NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMonogramView.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMonogramView.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMonogramView.h	2021-03-16 13:55:21.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVMonogramView.h	2021-06-02 05:34:07.000000000 -0400
@@ -13,7 +13,7 @@
  TVMonogramView is a lockup view specializing in presenting monograms.
  @discussion The system provides a generic silhouette placeholder image. If personNameComponents is set, the system composes an appropriate 'monogram' image with the initials. When an 'image' is set, the system uses it instead. When no frame or contentSize is explicitly set, the system uses a default size. 
  */
-__attribute__((visibility("default"))) API_AVAILABLE(tvos(12.0)) API_UNAVAILABLE(ios, watchos)
+__attribute__((visibility("default"))) API_DEPRECATED_WITH_REPLACEMENT("TVMonogramContentConfiguration", tvos(12.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(ios, watchos)
 @interface TVMonogramView : TVLockupView
 
 /**
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVUIKit.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVUIKit.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVUIKit.h	2021-03-16 13:51:46.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVUIKit.h	2021-06-01 22:12:29.000000000 -0400
@@ -13,6 +13,7 @@
 #import <UIKit/UIKit.h>
 
 #if __has_include(<TVUIKit/TVCaptionButtonView.h>)
+#import <TVUIKit/TVUIKitDefines.h>
 #import <TVUIKit/TVCaptionButtonView.h>
 #import <TVUIKit/TVCardView.h>
 #import <TVUIKit/TVDigitEntryViewController.h>
@@ -22,4 +23,7 @@
 #import <TVUIKit/TVPosterView.h>
 #import <TVUIKit/TVCollectionViewFullScreenLayout.h>
 #import <TVUIKit/TVCollectionViewFullScreenCell.h>
+
+#import <TVUIKit/TVMediaItemContentConfiguration.h>
+#import <TVUIKit/TVMonogramContentConfiguration.h>
 #endif
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVUIKitDefines.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVUIKitDefines.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVUIKitDefines.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/TVUIKit.framework/Headers/TVUIKitDefines.h	2021-06-01 22:12:29.000000000 -0400
@@ -0,0 +1,16 @@
+//
+//  TVUIKitDefines.h
+//  TVUIKit
+//
+//  Copyright © 2021 Apple Inc. All rights reserved.
+//
+
+#if !defined(TV_EXTERN)
+
+#ifdef __cplusplus
+#define TV_EXTERN   extern "C" __attribute__((visibility ("default")))
+#else
+#define TV_EXTERN   extern __attribute__((visibility ("default")))
+#endif
+
+#endif // !defined(TV_EXTERN)
Clone this wiki locally