One Logo Pool Ball
UIKit · IOS API REFERENCE

UICollectionViewLayoutAttributes

class · iOS 6.0+ · SDK 27.1

@MainActor class UICollectionViewLayoutAttributes

Members (25)

init · iOS 6.0+

init

TypeScript
static initForCellWith(indexPath: _Foundation_IndexPath): Promise<UICollectionViewLayoutAttributes>
Swift declaration
convenience init(forCellWith indexPath: IndexPath)
init · iOS 6.0+

init

TypeScript
static initForDecorationViewOfKindWith(decorationViewKind: string, indexPath: _Foundation_IndexPath): Promise<UICollectionViewLayoutAttributes>
Swift declaration
convenience init(forDecorationViewOfKind decorationViewKind: String, with indexPath: IndexPath)
init · iOS 6.0+

init

TypeScript
static initForSupplementaryViewOfKindWith(elementKind: string, indexPath: _Foundation_IndexPath): Promise<UICollectionViewLayoutAttributes>
Swift declaration
convenience init(forSupplementaryViewOfKind elementKind: String, with indexPath: IndexPath)
get · iOS 6.0+

alpha

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

alpha

TypeScript
setAlpha(value: number): Promise<void>
Swift declaration
var alpha: CGFloat { get set }
get · iOS 7.0+

bounds

TypeScript
get bounds(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
var bounds: CGRect { get set }
set · iOS 7.0+

bounds

TypeScript
setBounds(value: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
var bounds: CGRect { get set }
get · iOS 6.0+

center

TypeScript
get center(): Promise<{ x: number; y: number }>
Swift declaration
var center: CGPoint { get set }
set · iOS 6.0+

center

TypeScript
setCenter(value: { x: number; y: number }): Promise<void>
Swift declaration
var center: CGPoint { get set }
get · iOS 6.0+

frame

TypeScript
get frame(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
var frame: CGRect { get set }
set · iOS 6.0+

frame

TypeScript
setFrame(value: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
var frame: CGRect { get set }
get · iOS 6.0+

isHidden

TypeScript
get isHidden(): Promise<boolean>
Swift declaration
var isHidden: Bool { get set }
set · iOS 6.0+

isHidden

TypeScript
setIsHidden(value: boolean): Promise<void>
Swift declaration
var isHidden: Bool { get set }
get · iOS 6.0+

indexPath

TypeScript
get indexPath(): Promise<_Foundation_IndexPath>
Swift declaration
var indexPath: IndexPath { get set }
set · iOS 6.0+

indexPath

TypeScript
setIndexPath(value: _Foundation_IndexPath): Promise<void>
Swift declaration
var indexPath: IndexPath { get set }
get · iOS 6.0+

representedElementCategory

TypeScript
get representedElementCategory(): Promise<UICollectionView_ElementCategory>
Swift declaration
var representedElementCategory: UICollectionView.ElementCategory { get }
get · iOS 6.0+

representedElementKind

TypeScript
get representedElementKind(): Promise<(string) | null>
Swift declaration
var representedElementKind: String? { get }
get · iOS 6.0+

size

TypeScript
get size(): Promise<{ width: number; height: number }>
Swift declaration
var size: CGSize { get set }
set · iOS 6.0+

size

TypeScript
setSize(value: { width: number; height: number }): Promise<void>
Swift declaration
var size: CGSize { get set }
get · iOS 6.0+

transform3D

TypeScript
get transform3D(): Promise<_QuartzCore_CATransform3D>
Swift declaration
var transform3D: CATransform3D { get set }
set · iOS 6.0+

transform3D

TypeScript
setTransform3D(value: _QuartzCore_CATransform3D): Promise<void>
Swift declaration
var transform3D: CATransform3D { get set }
get · iOS 7.0+

transform

TypeScript
get transform(): Promise<_CoreFoundation_CGAffineTransform>
Swift declaration
var transform: CGAffineTransform { get set }
set · iOS 7.0+

transform

TypeScript
setTransform(value: _CoreFoundation_CGAffineTransform): Promise<void>
Swift declaration
var transform: CGAffineTransform { get set }
get · iOS 6.0+

zIndex

TypeScript
get zIndex(): Promise<number>
Swift declaration
var zIndex: Int { get set }
set · iOS 6.0+

zIndex

TypeScript
setZIndex(value: number): Promise<void>
Swift declaration
var zIndex: Int { get set }

Skipped declarations

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

UICollectionViewLayoutAttributes.init()

inherited init: cannot prove legal (class declares 6 custom initializers)

All UIKit types →