setTargetOffsetFromCenter(_:for:)
Sets the offset, from the center of a dynamic item, at which to apply the push behavior’s force vector.
Declaration
func setTargetOffsetFromCenter(_ o: UIOffset, for item: any UIDynamicItem)Parameters
- o:
The offset, from the center of the dynamic item, at which to apply the push behavior’s force vector.
- item:
The dynamic item for which you’re setting a target offset.
Discussion
If you don’t set a target offset for a dynamic item, a push behavior’s force vector is applied at the item center.