<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPushBehavior/init(items:mode:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPushBehavior(im)initWithItems:mode:"
  },
  "title" : "init(items:mode:)"
}
-->

# init(items:mode:)

Initializes a push behavior with an array of dynamic items.

```
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 [`UIPushBehavior.Mode`](/documentation/UIKit/UIPushBehavior/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)