One Logo Pool Ball
UIKit · IOS API REFERENCE

NSCollectionLayoutSpacing

class · iOS 13.0+ · SDK 27.1

@MainActor class NSCollectionLayoutSpacing

Members (5)

static · iOS 13.0+

fixed

TypeScript
static fixed(fixedSpacing: number): Promise<NSCollectionLayoutSpacing>
Swift declaration
class func fixed(_ fixedSpacing: CGFloat) -> Self
static · iOS 13.0+

flexible

TypeScript
static flexible(flexibleSpacing: number): Promise<NSCollectionLayoutSpacing>
Swift declaration
class func flexible(_ flexibleSpacing: CGFloat) -> Self
get · iOS 13.0+

isFixed

TypeScript
get isFixed(): Promise<boolean>
Swift declaration
var isFixed: Bool { get }
get · iOS 13.0+

isFlexible

TypeScript
get isFlexible(): Promise<boolean>
Swift declaration
var isFlexible: Bool { get }
get · iOS 13.0+

spacing

TypeScript
get spacing(): Promise<number>
Swift declaration
var spacing: CGFloat { get }

Skipped declarations

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

NSCollectionLayoutSpacing.init()

inherited init: clang: 'init' is unavailable

All UIKit types →