UIKit tvOS 12.4 to 13.0 API Differences

NSAttributedString.h
NSDataAsset.h
Declaration
From- (instancetype)initWithName:(NSString *)name
To- (instancetype)initWithName:(NSDataAssetName)name

Declaration
From- (instancetype)initWithName:(NSString *)name bundle:(NSBundle *)bundle
To- (instancetype)initWithName:(NSDataAssetName)name bundle:(NSBundle *)bundle

Declaration
From@property (nonatomic, readonly, copy) NSString *name
To@property (nonatomic, readonly, copy) NSDataAssetName name

NSLayoutAnchor.h
Added #def NSLAYOUTANCHOR_EXTERN
Protocols
Fromnone
ToNSCoding, NSCopying

NSLayoutConstraint.h
Added #def NSLAYOUTCONSTRAINT_EXTERN
Declaration
From+ (NSArray<__kindof NSLayoutConstraint *> *)constraintsWithVisualFormat:(NSString *)format options:(NSLayoutFormatOptions)opts metrics:(NSDictionary<NSString *,id> *)metrics views:(NSDictionary<NSString *,id> *)views
To+ (NSArray<NSLayoutConstraint *> *)constraintsWithVisualFormat:(NSString *)format options:(NSLayoutFormatOptions)opts metrics:(NSDictionary<NSString *,id> *)metrics views:(NSDictionary<NSString *,id> *)views

NSLayoutManager.h
Protocols
FromNSCoding
ToNSSecureCoding

DeclarationAvailabilityDeprecation Message
From@property (nonatomic) CGFloat hyphenationFactorAvailablenone
To@property CGFloat hyphenationFactorDeprecatedPlease use usesDefaultHyphenation or -[NSParagraphStyle hyphenationFactor] instead.

AvailabilityReplacement
FromAvailablenone
ToDeprecatedshowCGGlyphs:positions:count:font:textMatrix:attributes:inContext:

NSTextAttachment.h
Protocols
FromNSCoding, NSTextAttachmentContainer, UIAccessibilityContentSizeCategoryImageAdjusting
ToNSSecureCoding, NSTextAttachmentContainer, UIAccessibilityContentSizeCategoryImageAdjusting

NSTextContainer.h
Protocols
FromNSCoding, NSTextLayoutOrientationProvider
ToNSSecureCoding, NSTextLayoutOrientationProvider

NSTextStorage.h
Modified NSTextStorage
Protocols
Fromnone
ToNSSecureCoding

UIAccelerometer.h
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUIAcceleration has been replaced by the CoreMotion framework

UIAccessibility.h
UIAccessibilityConstants.h
UIAccessibilityCustomAction.h
UIAccessibilityElement.h
Superclass
FromNSObject
ToUIResponder

Declaration
From@property (nonatomic, assign) id accessibilityContainer
To@property (nonatomic, weak) id accessibilityContainer

UIAction.h
Added UIAction
UIActivityIndicatorView.h
AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIActivityIndicatorViewStyleLarge

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIActivityIndicatorViewStyleMedium

UIActivityItemProvider.h
UIApplication.h
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedPlease use PushKit for VoIP applications.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse UIView's userInteractionEnabled property instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse UIView's userInteractionEnabled property instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse UIView's userInteractionEnabled property instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedShould not be used for applications that support multiple scenes as it returns a key window across all connected scenes

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse a BGAppRefreshTask in the BackgroundTasks framework instead

Declaration
From- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
To- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey,id> *)launchOptions

Declaration
From- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
To- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey,id> *)launchOptions

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse a BGAppRefreshTask in the BackgroundTasks framework instead

UIBarAppearance.h
UIBarButtonItemAppearance.h
UIButton.h
UICollectionView.h
AvailabilityReplacement
FromAvailablenone
ToDeprecatedcollectionView:contextMenuConfigurationForRowAtIndexPath:

AvailabilityReplacement
FromAvailablenone
ToDeprecatedcollectionView:contextMenuConfigurationForRowAtIndexPath:

AvailabilityReplacement
FromAvailablenone
ToDeprecatedcollectionView:contextMenuConfigurationForRowAtIndexPath:

UICollectionViewCompositionalLayout.h
UIColor.h
UICommand.h
Added UICommand
UIContextMenuConfiguration.h
UIContextMenuInteraction.h
UIDevice.h
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse -[UIDevice userInterfaceIdiom] directly.

UIDiffableDataSource.h
UIFont.h
UIFontDescriptor.h
UIGeometry.h
UIGestureRecognizer.h
UIImage.h
UIImageAsset.h
UIImageConfiguration.h
UIImageSymbolConfiguration.h
UIImageView.h
UIImpactFeedbackGenerator.h
UIInputViewController.h
UIInteraction.h
UIInterface.h
UIKeyCommand.h
Modified UIKeyCommand
SuperclassProtocols
FromNSObjectNSCopying, NSSecureCoding
ToUICommandnone

Declaration
From+ (UIKeyCommand *)keyCommandWithInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags action:(SEL)action
To+ (instancetype)keyCommandWithInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags action:(SEL)action

DeclarationAvailabilityReplacement
From+ (UIKeyCommand *)keyCommandWithInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags action:(SEL)action discoverabilityTitle:(NSString *)discoverabilityTitleAvailablenone
To+ (instancetype)keyCommandWithInput:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags action:(SEL)action discoverabilityTitle:(NSString *)discoverabilityTitleDeprecatedkeyCommandWithInput:modifierFlags:action:

UIKitDefines.h
Removed #def UIKIT_DEFINE_AS_PROPERTIES
Removed #def UIKIT_REMOVE_ZERO_FROM_SWIFT
Removed #def UIKIT_STRING_ENUMS
UIMenu.h
Added UIMenu
UIMenuBuilder.h
UIMenuElement.h
UIMenuSystem.h
UINavigationBar.h
UINavigationBarAppearance.h
UINavigationController.h
UINavigationItem.h
UIOpenURLContext.h
UIPopoverBackgroundView.h
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedNo longer supported

UIPopoverSupport.h
AvailabilityReplacement
FromAvailablenone
ToDeprecatedmodalInPresentation

UIPresentationController.h
UIResponder.h
UIScene.h
Added UIScene
UISceneActivationConditions.h
Added NSUserActivity (UISceneActivationConditions)
UISceneDefinitions.h
UISceneOptions.h
UISceneSession.h
UIScreen.h
UIScreenshotService.h
UIScrollView.h
DeclarationAvailabilityDeprecation Message
From@property (nonatomic) UIEdgeInsets scrollIndicatorInsetsAvailablenone
To- (UIEdgeInsets)scrollIndicatorInsetsDeprecatedThe scrollIndicatorInsets getter is deprecated, use the verticalScrollIndicatorInsets and horizontalScrollIndicatorInsets getters instead.

UISearchBar.h
UISearchController.h
UISegmentedControl.h
Removed UISegmentedControl.tintColor
UISplitViewController.h
UIStoryboard.h
UITabBar.h
UITabBarAppearance.h
UITabBarController.h
UITabBarItem.h
UITableView.h
AvailabilityReplacement
FromAvailablenone
ToDeprecatedtableView:contextMenuConfigurationForRowAtIndexPath:point:

AvailabilityReplacement
FromAvailablenone
ToDeprecatedtableView:contextMenuConfigurationForRowAtIndexPath:point:

AvailabilityReplacement
FromAvailablenone
ToDeprecatedtableView:contextMenuConfigurationForRowAtIndexPath:

UITextField.h
UITextFormattingCoordinator.h
UITextInput.h
Removed UITextWritingDirectionNatural
Removed UITextWritingDirectionLeftToRight
Removed UITextWritingDirectionRightToLeft
Declaration
From- (UITextWritingDirection)baseWritingDirectionForPosition:(UITextPosition *)position inDirection:(UITextStorageDirection)direction
To- (NSWritingDirection)baseWritingDirectionForPosition:(UITextPosition *)position inDirection:(UITextStorageDirection)direction

Declaration
From- (void)setBaseWritingDirection:(UITextWritingDirection)writingDirection forRange:(UITextRange *)range
To- (void)setBaseWritingDirection:(NSWritingDirection)writingDirection forRange:(UITextRange *)range

Declaration
From@property (nonatomic, readonly) UITextWritingDirection writingDirection
To@property (nonatomic, readonly) NSWritingDirection writingDirection

AvailabilityReplacement
FromAvailablenone
ToDeprecatedNSWritingDirection

UITextInteraction.h
UITextView.h
UIToolbarAppearance.h
UITraitCollection.h
UIVibrancyEffect.h
UIView.h
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the block-based animation API instead

UIViewController.h
AvailabilityReplacement
FromAvailablenone
ToDeprecatedcanPerformUnwindSegueAction:fromViewController:sender:

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIContextMenuInteraction

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIContextMenuInteraction

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIContextMenuInteraction

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIContextMenuInteraction

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIContextMenuInteraction

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIContextMenuInteraction

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIContextMenuInteraction

AvailabilityReplacement
FromAvailablenone
ToDeprecatedUIContextMenuInteraction

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

UIWindow.h
Modified -[UIWindow setScreen:]
DeclarationAvailabilityReplacement
From@property (nonatomic, strong) UIScreen *screenAvailablenone
To- (void)setScreen:(UIScreen *)screenDeprecatedsetWindowScene:

UIWindowScene.h
UNNotificationResponse+UIKitAdditions.h
Added UNNotificationResponse (UIKitAdditions)