UIKit · IOS API REFERENCE
UIAttachmentBehavior
class · iOS 7.0+ · SDK 27.1
@MainActor class UIAttachmentBehavior
Members (23)
static · iOS 9.0+fixedAttachment
TypeScriptstatic fixedAttachment(item1: SDKHandle, item2: SDKHandle, point: { x: number; y: number }): Promise<UIAttachmentBehavior>
Swift declarationclass func fixedAttachment(with item1: any UIDynamicItem, attachedTo item2: any UIDynamicItem, attachmentAnchor point: CGPoint) -> Self
static · iOS 9.0+limitAttachment
TypeScriptstatic limitAttachment(item1: SDKHandle, offset1: UIOffset, item2: SDKHandle, offset2: UIOffset): Promise<UIAttachmentBehavior>
Swift declarationclass func limitAttachment(with item1: any UIDynamicItem, offsetFromCenter offset1: UIOffset, attachedTo item2: any UIDynamicItem, offsetFromCenter offset2: UIOffset) -> Self
static · iOS 9.0+pinAttachment
TypeScriptstatic pinAttachment(item1: SDKHandle, item2: SDKHandle, point: { x: number; y: number }): Promise<UIAttachmentBehavior>
Swift declarationclass func pinAttachment(with item1: any UIDynamicItem, attachedTo item2: any UIDynamicItem, attachmentAnchor point: CGPoint) -> Self
static · iOS 9.0+slidingAttachment
TypeScriptstatic slidingAttachmentWithAttachedToAttachmentAnchorAxisOfTranslation(item1: SDKHandle, item2: SDKHandle, point: { x: number; y: number }, axis: { dx: number; dy: number }): Promise<UIAttachmentBehavior>
Swift declarationclass func slidingAttachment(with item1: any UIDynamicItem, attachedTo item2: any UIDynamicItem, attachmentAnchor point: CGPoint, axisOfTranslation axis: CGVector) -> Self
static · iOS 9.0+slidingAttachment
TypeScriptstatic slidingAttachmentWithAttachmentAnchorAxisOfTranslation(item: SDKHandle, point: { x: number; y: number }, axis: { dx: number; dy: number }): Promise<UIAttachmentBehavior>
Swift declarationclass func slidingAttachment(with item: any UIDynamicItem, attachmentAnchor point: CGPoint, axisOfTranslation axis: CGVector) -> Self
init · iOS 7.0+init
TypeScriptstatic initItemAttachedToAnchor(item: SDKHandle, point: { x: number; y: number }): Promise<UIAttachmentBehavior>
Swift declarationconvenience init(item: any UIDynamicItem, attachedToAnchor point: CGPoint)
init · iOS 7.0+init
TypeScriptstatic initItemAttachedTo(item1: SDKHandle, item2: SDKHandle): Promise<UIAttachmentBehavior>
Swift declarationconvenience init(item item1: any UIDynamicItem, attachedTo item2: any UIDynamicItem)
init · iOS 7.0+init
TypeScriptstatic initItemOffsetFromCenterAttachedToAnchor(item: SDKHandle, offset: UIOffset, point: { x: number; y: number }): Promise<UIAttachmentBehavior>
Swift declarationinit(item: any UIDynamicItem, offsetFromCenter offset: UIOffset, attachedToAnchor point: CGPoint)
init · iOS 7.0+init
TypeScriptstatic initItemOffsetFromCenterAttachedToOffsetFromCenter(item1: SDKHandle, offset1: UIOffset, item2: SDKHandle, offset2: UIOffset): Promise<UIAttachmentBehavior>
Swift declarationinit(item item1: any UIDynamicItem, offsetFromCenter offset1: UIOffset, attachedTo item2: any UIDynamicItem, offsetFromCenter offset2: UIOffset)
get · iOS 7.0+anchorPoint
TypeScriptget anchorPoint(): Promise<{ x: number; y: number }>
Swift declarationvar anchorPoint: CGPoint { get set }
set · iOS 7.0+anchorPoint
TypeScriptsetAnchorPoint(value: { x: number; y: number }): Promise<void>
Swift declarationvar anchorPoint: CGPoint { get set }
get · iOS 7.0+attachedBehaviorType
TypeScriptget attachedBehaviorType(): Promise<UIAttachmentBehavior_AttachmentType>
Swift declarationvar attachedBehaviorType: UIAttachmentBehavior.AttachmentType { get }
get · iOS 9.0+attachmentRange
TypeScriptget attachmentRange(): Promise<UIFloatRange>
Swift declarationvar attachmentRange: UIFloatRange { get set }
set · iOS 9.0+attachmentRange
TypeScriptsetAttachmentRange(value: UIFloatRange): Promise<void>
Swift declarationvar attachmentRange: UIFloatRange { get set }
get · iOS 7.0+damping
TypeScriptget damping(): Promise<number>
Swift declarationvar damping: CGFloat { get set }
set · iOS 7.0+damping
TypeScriptsetDamping(value: number): Promise<void>
Swift declarationvar damping: CGFloat { get set }
get · iOS 7.0+frequency
TypeScriptget frequency(): Promise<number>
Swift declarationvar frequency: CGFloat { get set }
set · iOS 7.0+frequency
TypeScriptsetFrequency(value: number): Promise<void>
Swift declarationvar frequency: CGFloat { get set }
get · iOS 9.0+frictionTorque
TypeScriptget frictionTorque(): Promise<number>
Swift declarationvar frictionTorque: CGFloat { get set }
set · iOS 9.0+frictionTorque
TypeScriptsetFrictionTorque(value: number): Promise<void>
Swift declarationvar frictionTorque: CGFloat { get set }
get · iOS 7.0+items
TypeScriptget items(): Promise<Array<SDKHandle>>
Swift declarationvar items: [any UIDynamicItem] { get }
get · iOS 7.0+length
TypeScriptget length(): Promise<number>
Swift declarationvar length: CGFloat { get set }
set · iOS 7.0+length
TypeScriptsetLength(value: number): Promise<void>
Swift declarationvar length: CGFloat { get set }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UIAttachmentBehavior.init()
inherited init: cannot prove legal (class declares 6 custom initializers)
All UIKit types →