UIKit tvOS 15.4 to 16.0 API Differences

NSParagraphStyle.h
Added NSParagraphStyle.textLists
Added NSMutableParagraphStyle.textLists
NSTextElement.h
Added NSTextElement.childElements
Added NSTextElement.parentElement
Added NSTextElement.isRepresentedElement
NSTextList.h
Added NSTextListOptions
Added NSTextListPrependEnclosingMarker
Added NSTextListMarkerFormat
Added NSTextListMarkerBox
Added NSTextListMarkerCheck
Added NSTextListMarkerCircle
Added NSTextListMarkerDiamond
Added NSTextListMarkerDisc
Added NSTextListMarkerHyphen
Added NSTextListMarkerSquare
Added NSTextListMarkerLowercaseHexadecimal
Added NSTextListMarkerUppercaseHexadecimal
Added NSTextListMarkerOctal
Added NSTextListMarkerLowercaseAlpha
Added NSTextListMarkerUppercaseAlpha
Added NSTextListMarkerLowercaseLatin
Added NSTextListMarkerUppercaseLatin
Added NSTextListMarkerLowercaseRoman
Added NSTextListMarkerUppercaseRoman
Added NSTextListMarkerDecimal
Added NSTextList
Added -[NSTextList initWithMarkerFormat:options:startingItemNumber:]
Added -[NSTextList initWithMarkerFormat:options:]
Added -[NSTextList initWithCoder:]
Added NSTextList.markerFormat
Added NSTextList.listOptions
Added NSTextList.startingItemNumber
Added NSTextList.ordered
Added -[NSTextList markerForItemNumber:]
NSTextListElement.h
Added NSTextListElement
Added -[NSTextListElement initWithParentElement:textList:contents:markerAttributes:childElements:]
Added +[NSTextListElement textListElementWithContents:markerAttributes:textList:childElements:]
Added +[NSTextListElement textListElementWithChildElements:textList:nestingLevel:]
Added NSTextListElement.textList
Added NSTextListElement.contents
Added NSTextListElement.markerAttributes
Added NSTextListElement.attributedString
Added NSTextListElement.childElements
Added NSTextListElement.parentElement
ShareSheetDefines.h
Removed #def SHARESHEET_EXTERN
UIAction.h
Modified UIAction
Protocols
Fromnone
ToUIMenuLeaf

UIAlertController.h
Added UIAlertControllerSeverity
Added UIAlertControllerSeverityDefault
Added UIAlertControllerSeverityCritical
Added UIAlertController.severity
UIApplication.h
Modified UIApplicationLaunchOptionsAnnotationKey
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedThis dictionary key is no longer used.

UICalendarViewDecoration.h
Added UICalendarViewDecorationSize
UICollectionView.h
Added UICollectionViewSelfSizingInvalidation
Added UICollectionViewSelfSizingInvalidationDisabled
Added UICollectionViewSelfSizingInvalidationEnabled
Added UICollectionViewSelfSizingInvalidationEnabledIncludingConstraints
Added -[UICollectionViewDelegate collectionView:canPerformPrimaryActionForItemAtIndexPath:]
Added -[UICollectionViewDelegate collectionView:performPrimaryActionForItemAtIndexPath:]
Added UICollectionView.selfSizingInvalidation
UICollectionViewCell.h
Added -[UICollectionViewCell defaultBackgroundConfiguration]
UICollectionViewCompositionalLayout.h
Added NSCollectionLayoutSection.supplementaryContentInsetsReference
Added +[NSCollectionLayoutGroup horizontalGroupWithLayoutSize:repeatingSubitem:count:]
Added +[NSCollectionLayoutGroup verticalGroupWithLayoutSize:repeatingSubitem:count:]
Modified NSCollectionLayoutSection.supplementariesFollowContentInsets
Availability
FromAvailable
ToDeprecated

Modified +[NSCollectionLayoutGroup horizontalGroupWithLayoutSize:subitem:count:]
Availability
FromAvailable
ToDeprecated

Modified +[NSCollectionLayoutGroup verticalGroupWithLayoutSize:subitem:count:]
Availability
FromAvailable
ToDeprecated

UICommand.h
Modified UICommand
Protocols
Fromnone
ToUIMenuLeaf

UIContextMenuConfiguration.h
Added UIContextMenuConfigurationElementOrder
UIEditMenuInteraction.h
Added UIEditMenuArrowDirection
UIFindSession.h
Added UIFindSessionSearchResultDisplayStyleCurrentAndTotal
Added UIFindSessionSearchResultDisplayStyleTotal
Added UIFindSessionSearchResultDisplayStyleNone
Added UITextSearchMatchMethodContains
Added UITextSearchMatchMethodStartsWith
Added UITextSearchMatchMethodFullWord
UIFocusDebugger.h
Removed +[UIFocusDebugger checkFocusGroupTreeForEnvironment:]
Added +[UIFocusDebugger focusGroupsForEnvironment:]
Added +[UIFocusDebugger preferredFocusEnvironmentsForEnvironment:]
UIImage.h
Added +[UIImage systemImageNamed:variableValue:withConfiguration:]
Added +[UIImage imageNamed:inBundle:variableValue:withConfiguration:]
UIImageSymbolConfiguration.h
Added +[UIImageSymbolConfiguration configurationPreferringMonochrome]
UIInterface.h
Added UINSToolbarItemPresentationSize
Added UINSToolbarItemPresentationSizeUnspecified
Added UINSToolbarItemPresentationSizeRegular
Added UINSToolbarItemPresentationSizeSmall
Added UINSToolbarItemPresentationSizeLarge
UIListContentTextProperties.h
Added UIListContentTextProperties.showsExpansionTextWhenTruncated
UIMenu.h
Added UIMenuElementSize
Added UIMenuElementSizeSmall
Added UIMenuElementSizeMedium
Added UIMenuElementSizeLarge
Added UIMenu.preferredElementSize
Added UIMenuDocument
UIMenuElement.h
Added UIMenuElementAttributesKeepsMenuPresented
UIMenuLeaf.h
Added UIMenuLeaf
Added UIMenuLeaf.title
Added UIMenuLeaf.image
Added UIMenuLeaf.discoverabilityTitle
Added UIMenuLeaf.attributes
Added UIMenuLeaf.state
Added UIMenuLeaf.sender
Added UIMenuLeaf.presentationSourceItem
Added -[UIMenuLeaf performWithSender:target:]
UINavigationBar.h
Added UINavigationBarNSToolbarSection
UINavigationItem.h
Added UINavigationItemSearchBarPlacement
Added UINavigationItemStyle
UIPageControl.h
Added UIPageControlDirection
Added UIPageControlDirectionNatural
Added UIPageControlDirectionLeftToRight
Added UIPageControlDirectionRightToLeft
Added UIPageControlDirectionTopToBottom
Added UIPageControlDirectionBottomToTop
Added UIPageControl.direction
Added UIPageControl.preferredCurrentPageIndicatorImage
Added -[UIPageControl currentPageIndicatorImageForPage:]
Added -[UIPageControl setCurrentPageIndicatorImage:forPage:]
UIPasteControl.h
Added UIPasteControlDisplayMode
Added UIPasteControlDisplayModeIconAndLabel
Added UIPasteControlDisplayModeIconOnly
Added UIPasteControlDisplayModeLabelOnly
Added UIPasteControlCornerStyle
Added UIPasteControlCornerStyleNone
Added UIPasteControlCornerStyleSmall
Added UIPasteControlCornerStyleMedium
Added UIPasteControlCornerStyleLarge
Added UIPasteControlCornerStyleCapsule
UIResponder.h
Added -[UIResponderStandardEditActions find:]
Added -[UIResponderStandardEditActions findAndReplace:]
Added -[UIResponderStandardEditActions findNext:]
Added -[UIResponderStandardEditActions findPrevious:]
Added -[UIResponderStandardEditActions useSelectionForFind:]
Added -[UIResponderStandardEditActions rename:]
Added -[UIResponderStandardEditActions duplicate:]
Added -[UIResponderStandardEditActions move:]
Added -[UIResponderStandardEditActions export:]
UISceneDefinitions.h
Added UISceneErrorCodeGeometryRequestUnsupported
Added UISceneErrorCodeGeometryRequestDenied
UISceneWindowingBehaviors.h
Added UISceneWindowingBehaviors
Added UISceneWindowingBehaviors.closable
Added UISceneWindowingBehaviors.miniaturizable
UIScreen.h
Added UIScreenReferenceDisplayModeStatusDidChangeNotification
Added UIScreenReferenceDisplayModeStatus
Added UIScreenReferenceDisplayModeStatusNotSupported
Added UIScreenReferenceDisplayModeStatusNotEnabled
Added UIScreenReferenceDisplayModeStatusLimited
Added UIScreenReferenceDisplayModeStatusEnabled
Added UIScreen.referenceDisplayModeStatus
Added UIScreen.currentEDRHeadroom
Added UIScreen.potentialEDRHeadroom
Modified UIScreenDidConnectNotification
DeclarationAvailabilityDeprecation Message
FromAPI_AVAILABLE(ios(3.2)) const NSNotificationName UIScreenDidConnectNotificationAvailablenone
ToAPI_DEPRECATED("Use UISceneDelegate or related notifications to be informed of connecting scenes from other screens", ios(3.2, 16.0)) const NSNotificationName UIScreenDidConnectNotificationDeprecatedUse UISceneDelegate or related notifications to be informed of connecting scenes from other screens

Modified UIScreenDidDisconnectNotification
DeclarationAvailabilityDeprecation Message
FromAPI_AVAILABLE(ios(3.2)) const NSNotificationName UIScreenDidDisconnectNotificationAvailablenone
ToAPI_DEPRECATED("Use UISceneDelegate or related notifications to be informed of disconnecting scenes from other screens", ios(3.2, 16.0)) const NSNotificationName UIScreenDidDisconnectNotificationDeprecatedUse UISceneDelegate or related notifications to be informed of disconnecting scenes from other screens

Modified UIScreen.screens
DeclarationAvailabilityDeprecation Message
From@property (class, nonatomic, readonly, nonnull) NSArray<UIScreen *> *screensAvailablenone
To@property (class, nonatomic, readonly, nonnull) NSArray<UIScreen *> *screensDeprecatedUse UIApplication.shared.openSessions to find open sessions with scenes from other screens

Modified UIScreen.mainScreen
DeclarationAvailabilityDeprecation Message
From@property (class, nonatomic, readonly, nonnull) UIScreen *mainScreenAvailablenone
To@property (class, nonatomic, readonly, nonnull) UIScreen *mainScreenDeprecatedUse a UIScreen instance found through context instead: i.e, view.window.windowScene.screen

UIScrollView.h
Added UIScrollViewKeyboardDismissModeOnDragWithAccessory
Added UIScrollViewKeyboardDismissModeInteractiveWithAccessory
UISearchController.h
Modified UISearchController.searchSuggestions
Declaration
From@property (nonatomic, copy, nullable) NSArray<id<UISearchSuggestion>> *searchSuggestions
To@property (nonatomic, copy, nullable) NSArray<id<UISearchSuggestion>> *searchSuggestions

UISearchSuggestion.h
Added UISearchSuggestion.representedObject
Added UISearchSuggestionItem.representedObject
UITableView.h
Added -[UITableViewDelegate tableView:canPerformPrimaryActionForRowAtIndexPath:]
Added -[UITableViewDelegate tableView:performPrimaryActionForRowAtIndexPath:]
Added UITableViewSelfSizingInvalidation
Added UITableViewSelfSizingInvalidationDisabled
Added UITableViewSelfSizingInvalidationEnabled
Added UITableViewSelfSizingInvalidationEnabledIncludingConstraints
Added UITableView.selfSizingInvalidation
UITableViewCell.h
Added -[UITableViewCell defaultBackgroundConfiguration]
UITableViewHeaderFooterView.h
Added -[UITableViewHeaderFooterView defaultBackgroundConfiguration]
UITextField.h
Added -[UITextFieldDelegate textField:editMenuForCharactersInRange:suggestedActions:]
UITextInput.h
Added -[UITextInput editMenuForTextRange:suggestedActions:]
UITextSearching.h
Added UITextSearchDocumentIdentifier
Added UITextSearchFoundTextStyle
UITextView.h
Added -[UITextViewDelegate textView:editMenuForTextInRange:suggestedActions:]
Added +[UITextView textViewUsingTextLayoutManager:]
Added UITextView.textLayoutManager
UITraitCollection.h
Added +[UITraitCollection traitCollectionWithToolbarItemPresentationSize:]
Added UITraitCollection.toolbarItemPresentationSize
UIView.h
Modified UIView.minimumContentSizeCategory
Declaration
From@property (nonatomic, copy, nullable) UIContentSizeCategory minimumContentSizeCategory
To@property (nonatomic, copy, nullable) UIContentSizeCategory minimumContentSizeCategory

Modified UIView.maximumContentSizeCategory
Declaration
From@property (nonatomic, copy, nullable) UIContentSizeCategory maximumContentSizeCategory
To@property (nonatomic, copy, nullable) UIContentSizeCategory maximumContentSizeCategory

Modified UIView.appliedContentSizeCategoryLimitsDescription
Declaration
From@property (nonatomic, readonly, copy, nonnull) NSString *appliedContentSizeCategoryLimitsDescription
To@property (nonatomic, readonly, copy, nonnull) NSString *appliedContentSizeCategoryLimitsDescription

UIViewController.h
Added UIViewController.interactionActivityTrackingBaseName
Added UIViewController.activePresentationController
UIWindow.h
Added UILayoutGuideAspectFitting
Added UILayoutGuideAspectFitting.aspectRatio
Added UIWindow.safeAreaAspectFitLayoutGuide
UIWindowScene.h
Added -[UIWindowScene requestGeometryUpdateWithPreferences:errorHandler:]
Added UIWindowScene.effectiveGeometry
Added UIWindowScene.windowingBehaviors
Added UIWindowScene.fullScreen
Added UIWindowSceneSessionRoleExternalDisplayNonInteractive
Added UISceneSizeRestrictions.allowsFullScreen
Modified UIWindowSceneSessionRoleExternalDisplay
DeclarationAvailability
FromAPI_AVAILABLE(ios(13.0)) const UISceneSessionRole UIWindowSceneSessionRoleExternalDisplayAvailable
ToAPI_DEPRECATED_WITH_REPLACEMENT("UIWindowSceneSessionRoleExternalDisplayNonInteractive", ios(13.0, 16.0)) const UISceneSessionRole UIWindowSceneSessionRoleExternalDisplayDeprecated

UIWindowSceneGeometry.h
Added UIWindowSceneGeometry
UIWindowSceneGeometryPreferences.h
Added UIWindowSceneGeometryPreferences
UIWindowSceneMacGeometryPreferences.h
Added UIWindowSceneMacGeometryPreferences
Added -[UIWindowSceneMacGeometryPreferences initWithSystemFrame:]
Added UIWindowSceneMacGeometryPreferences.systemFrame