<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNNotificationContent/updating(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNNotificationContent(im)contentByUpdatingWithProvider:error:"
  },
  "title" : "updating(from:)"
}
-->

# updating(from:)

Returns a copy of the notification that includes content from the specified provider.

```
func updating(from provider: any UNNotificationContentProviding) throws -> UNNotificationContent
```

## Parameters

`provider`

The notification content providing object.

## Return Value

The notification content object for the content handler.

## Discussion

The system contextualizes your [`UNNotificationContent`](/documentation/UserNotifications/UNNotificationContent) object with other Apple SDK objects conforming to [`UNNotificationContentProviding`](/documentation/UserNotifications/UNNotificationContentProviding). The system specializes the notification and decorates its look and behavior accordingly.

For example, the system treats the notification as a message with an avatar and promotes it to the top of notification center if the object passed in is a valid <doc://com.apple.documentation/documentation/Intents/INSendMessageIntent> that conforms to `UNNotificationContentProviding`. The system throws an error with a [`UNError.Code`](/documentation/UserNotifications/UNError/Code), if the `UNNotificationContentProviding` object is invalid. Pass the valid `UNNotificationContent` result directly to [`UNUserNotificationCenter`](/documentation/UserNotifications/UNUserNotificationCenter) without mutating.

Add this call to the [`UNNotificationServiceExtension`](/documentation/UserNotifications/UNNotificationServiceExtension) in [`didReceive(_:withContentHandler:)`](/documentation/UserNotifications/UNNotificationServiceExtension/didReceive(_:withContentHandler:)). Your app passes the returned `UNNotificationContent` to the `contentHandler` for incoming push notifications.

---

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)