One Logo Pool Ball
UIKit · IOS API REFERENCE

UISnapBehavior

class · iOS 7.0+ · SDK 27.1

@MainActor class UISnapBehavior

Members (5)

init · iOS 7.0+

init

TypeScript
static init(item: SDKHandle, point: { x: number; y: number }): Promise<UISnapBehavior>
Swift declaration
init(item: any UIDynamicItem, snapTo point: CGPoint)
get · iOS 7.0+

damping

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

damping

TypeScript
setDamping(value: number): Promise<void>
Swift declaration
var damping: CGFloat { get set }
get · iOS 9.0+

snapPoint

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

snapPoint

TypeScript
setSnapPoint(value: { x: number; y: number }): Promise<void>
Swift declaration
var snapPoint: CGPoint { get set }

Skipped declarations

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

UISnapBehavior.init()

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

All UIKit types →