One Logo Pool Ball
UIKit · IOS API REFERENCE

NSCollectionLayoutSection

class · iOS 13.0+ · SDK 27.1

@MainActor class NSCollectionLayoutSection

Members (21)

init · iOS 13.0+

init

TypeScript
static init(group: NSCollectionLayoutGroup): Promise<NSCollectionLayoutSection>
Swift declaration
convenience init(group: NSCollectionLayoutGroup)
get · iOS 13.0+

boundarySupplementaryItems

TypeScript
get boundarySupplementaryItems(): Promise<Array<NSCollectionLayoutBoundarySupplementaryItem>>
Swift declaration
var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
set · iOS 13.0+

boundarySupplementaryItems

TypeScript
setBoundarySupplementaryItems(value: Array<NSCollectionLayoutBoundarySupplementaryItem>): Promise<void>
Swift declaration
var boundarySupplementaryItems: [NSCollectionLayoutBoundarySupplementaryItem] { get set }
get · iOS 13.0+

contentInsets

TypeScript
get contentInsets(): Promise<{ top: number; leading: number; bottom: number; trailing: number }>
Swift declaration
var contentInsets: NSDirectionalEdgeInsets { get set }
set · iOS 13.0+

contentInsets

TypeScript
setContentInsets(value: { top: number; leading: number; bottom: number; trailing: number }): Promise<void>
Swift declaration
var contentInsets: NSDirectionalEdgeInsets { get set }
get · iOS 14.0+

contentInsetsReference

TypeScript
get contentInsetsReference(): Promise<UIContentInsetsReference>
Swift declaration
var contentInsetsReference: UIContentInsetsReference { get set }
set · iOS 14.0+

contentInsetsReference

TypeScript
setContentInsetsReference(value: UIContentInsetsReference): Promise<void>
Swift declaration
var contentInsetsReference: UIContentInsetsReference { get set }
get · iOS 13.0+

decorationItems

TypeScript
get decorationItems(): Promise<Array<NSCollectionLayoutDecorationItem>>
Swift declaration
var decorationItems: [NSCollectionLayoutDecorationItem] { get set }
set · iOS 13.0+

decorationItems

TypeScript
setDecorationItems(value: Array<NSCollectionLayoutDecorationItem>): Promise<void>
Swift declaration
var decorationItems: [NSCollectionLayoutDecorationItem] { get set }
get · iOS 13.0+

interGroupSpacing

TypeScript
get interGroupSpacing(): Promise<number>
Swift declaration
var interGroupSpacing: CGFloat { get set }
set · iOS 13.0+

interGroupSpacing

TypeScript
setInterGroupSpacing(value: number): Promise<void>
Swift declaration
var interGroupSpacing: CGFloat { get set }
get · iOS 13.0+

orthogonalScrollingBehavior

TypeScript
get orthogonalScrollingBehavior(): Promise<UICollectionLayoutSectionOrthogonalScrollingBehavior>
Swift declaration
var orthogonalScrollingBehavior: UICollectionLayoutSectionOrthogonalScrollingBehavior { get set }
set · iOS 13.0+

orthogonalScrollingBehavior

TypeScript
setOrthogonalScrollingBehavior(value: UICollectionLayoutSectionOrthogonalScrollingBehavior): Promise<void>
Swift declaration
var orthogonalScrollingBehavior: UICollectionLayoutSectionOrthogonalScrollingBehavior { get set }
get · iOS 17.0+

orthogonalScrollingProperties

TypeScript
get orthogonalScrollingProperties(): Promise<UICollectionLayoutSectionOrthogonalScrollingProperties>
Swift declaration
var orthogonalScrollingProperties: UICollectionLayoutSectionOrthogonalScrollingProperties { get }
get · iOS 13.0+ · Deprecated in iOS 16.0

supplementariesFollowContentInsets

TypeScript
get supplementariesFollowContentInsets(): Promise<boolean>
Swift declaration
var supplementariesFollowContentInsets: Bool { get set }
set · iOS 13.0+ · Deprecated in iOS 16.0

supplementariesFollowContentInsets

TypeScript
setSupplementariesFollowContentInsets(value: boolean): Promise<void>
Swift declaration
var supplementariesFollowContentInsets: Bool { get set }
get · iOS 16.0+

supplementaryContentInsetsReference

TypeScript
get supplementaryContentInsetsReference(): Promise<UIContentInsetsReference>
Swift declaration
var supplementaryContentInsetsReference: UIContentInsetsReference { get set }
set · iOS 16.0+

supplementaryContentInsetsReference

TypeScript
setSupplementaryContentInsetsReference(value: UIContentInsetsReference): Promise<void>
Swift declaration
var supplementaryContentInsetsReference: UIContentInsetsReference { get set }
get · iOS 13.0+

visibleItemsInvalidationHandler

TypeScript
get visibleItemsInvalidationHandler(): Promise<(((arg0: Array<SDKHandle>, arg1: { x: number; y: number }, arg2: SDKHandle) => Promise<void>)) | null>
Swift declaration
var visibleItemsInvalidationHandler: NSCollectionLayoutSectionVisibleItemsInvalidationHandler? { get set }
set · iOS 13.0+

visibleItemsInvalidationHandler

TypeScript
setVisibleItemsInvalidationHandler(value?: (((arg0: Array<SDKHandle>, arg1: { x: number; y: number }, arg2: SDKHandle) => void)) | null): Promise<void>
Swift declaration
var visibleItemsInvalidationHandler: NSCollectionLayoutSectionVisibleItemsInvalidationHandler? { get set }
static · iOS 14.0+

list

TypeScript
static list(configuration: UICollectionLayoutListConfiguration, layoutEnvironment: SDKHandle): Promise<NSCollectionLayoutSection>
Swift declaration
@MainActor @preconcurrency static func list(using configuration: UICollectionLayoutListConfiguration, layoutEnvironment: any NSCollectionLayoutEnvironment) -> NSCollectionLayoutSection

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSCollectionLayoutSection.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →