One Logo Pool Ball
UIKit · IOS API REFERENCE

UIDynamicAnimator

class · iOS 7.0+ · SDK 27.1

class UIDynamicAnimator

Members (16)

method · iOS 7.0+

addBehavior

TypeScript
addBehavior(behavior: UIDynamicBehavior): void
Swift declaration
func addBehavior(_ behavior: UIDynamicBehavior)
init

init

TypeScript
static initCollectionViewLayout(layout: UICollectionViewLayout): UIDynamicAnimator
Swift declaration
convenience init(collectionViewLayout layout: UICollectionViewLayout)
init · iOS 7.0+

init

TypeScript
static initReferenceView(view: UIView): UIDynamicAnimator
Swift declaration
init(referenceView view: UIView)
method · iOS 7.0+

items

TypeScript
items(rect: { x: number; y: number; width: number; height: number }): Array<SDKHandle>
Swift declaration
func items(in rect: CGRect) -> [any UIDynamicItem]
method

layoutAttributesForCell

TypeScript
layoutAttributesForCell(indexPath: _Foundation_IndexPath): (UICollectionViewLayoutAttributes) | null
Swift declaration
func layoutAttributesForCell(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?
method

layoutAttributesForDecorationView

TypeScript
layoutAttributesForDecorationView(decorationViewKind: string, indexPath: _Foundation_IndexPath): (UICollectionViewLayoutAttributes) | null
Swift declaration
func layoutAttributesForDecorationView(ofKind decorationViewKind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?
method

layoutAttributesForSupplementaryView

TypeScript
layoutAttributesForSupplementaryView(kind: string, indexPath: _Foundation_IndexPath): (UICollectionViewLayoutAttributes) | null
Swift declaration
func layoutAttributesForSupplementaryView(ofKind kind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?
method · iOS 7.0+

removeAllBehaviors

TypeScript
removeAllBehaviors(): void
Swift declaration
func removeAllBehaviors()
method · iOS 7.0+

removeBehavior

TypeScript
removeBehavior(behavior: UIDynamicBehavior): void
Swift declaration
func removeBehavior(_ behavior: UIDynamicBehavior)
method · iOS 7.0+

updateItem

TypeScript
updateItem(item: SDKHandle): void
Swift declaration
func updateItem(usingCurrentState item: any UIDynamicItem)
get · iOS 7.0+

behaviors

TypeScript
get behaviors(): Array<UIDynamicBehavior>
Swift declaration
var behaviors: [UIDynamicBehavior] { get }
get · iOS 7.0+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
weak var delegate: (any UIDynamicAnimatorDelegate)? { get set }
set · iOS 7.0+

delegate

TypeScript
set delegate(value: (Implements<UIDynamicAnimatorDelegate> | SDKHandle) | null)
Swift declaration
weak var delegate: (any UIDynamicAnimatorDelegate)? { get set }
get · iOS 7.0+

elapsedTime

TypeScript
get elapsedTime(): number
Swift declaration
var elapsedTime: TimeInterval { get }
get · iOS 7.0+

referenceView

TypeScript
get referenceView(): (UIView) | null
Swift declaration
var referenceView: UIView? { get }
get · iOS 7.0+

isRunning

TypeScript
get isRunning(): boolean
Swift declaration
var isRunning: Bool { get }

Skipped declarations

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

UIDynamicAnimator.init()

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

All UIKit types →