addBehavior
TypeScriptaddBehavior(behavior: UIDynamicBehavior): voidSwift declarationfunc addBehavior(_ behavior: UIDynamicBehavior)class · iOS 7.0+ · SDK 27.1
class UIDynamicAnimatoraddBehavior(behavior: UIDynamicBehavior): voidSwift declarationfunc addBehavior(_ behavior: UIDynamicBehavior)static initCollectionViewLayout(layout: UICollectionViewLayout): UIDynamicAnimatorSwift declarationconvenience init(collectionViewLayout layout: UICollectionViewLayout)static initReferenceView(view: UIView): UIDynamicAnimatorSwift declarationinit(referenceView view: UIView)items(rect: { x: number; y: number; width: number; height: number }): Array<SDKHandle>Swift declarationfunc items(in rect: CGRect) -> [any UIDynamicItem]layoutAttributesForCell(indexPath: _Foundation_IndexPath): (UICollectionViewLayoutAttributes) | nullSwift declarationfunc layoutAttributesForCell(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?layoutAttributesForDecorationView(decorationViewKind: string, indexPath: _Foundation_IndexPath): (UICollectionViewLayoutAttributes) | nullSwift declarationfunc layoutAttributesForDecorationView(ofKind decorationViewKind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?layoutAttributesForSupplementaryView(kind: string, indexPath: _Foundation_IndexPath): (UICollectionViewLayoutAttributes) | nullSwift declarationfunc layoutAttributesForSupplementaryView(ofKind kind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?removeAllBehaviors(): voidSwift declarationfunc removeAllBehaviors()removeBehavior(behavior: UIDynamicBehavior): voidSwift declarationfunc removeBehavior(_ behavior: UIDynamicBehavior)updateItem(item: SDKHandle): voidSwift declarationfunc updateItem(usingCurrentState item: any UIDynamicItem)get behaviors(): Array<UIDynamicBehavior>Swift declarationvar behaviors: [UIDynamicBehavior] { get }get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any UIDynamicAnimatorDelegate)? { get set }set delegate(value: (Implements<UIDynamicAnimatorDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any UIDynamicAnimatorDelegate)? { get set }get elapsedTime(): numberSwift declarationvar elapsedTime: TimeInterval { get }get referenceView(): (UIView) | nullSwift declarationvar referenceView: UIView? { get }get isRunning(): booleanSwift declarationvar isRunning: Bool { get }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)