targetOffsetFromCenter(for:)
Returns the offset, from the center of a dynamic item, at which the push behavior’s force vector is applied.
Declaration
func targetOffsetFromCenter(for item: any UIDynamicItem) -> UIOffsetParameters
- item:
The dynamic item for which you’re retrieving the target offset.
Return Value
The offset, from the center of the dynamic item, at which the push behavior’s force vector is applied. If you haven’t set a target offset, returns the center of the dynamic item.