init(items:mode:)
Initializes a push behavior with an array of dynamic items.
Declaration
init(items: [any UIDynamicItem], mode: UIPushBehavior.Mode)Parameters
- items:
The dynamic items that you want to be subject to the push behavior.
- mode:
The mode for the new push behavior; one of the values defined in the Mode Swift.enum enumeration. You must supply a value.
Return Value
The initialized push behavior, or nil if there was a problem initializing the object.