---
title: "merge(other:)"
framework: Assignables
role: symbol
role_heading: Instance Method
platforms: [iOS 17.4+, iPadOS 17.4+, Mac Catalyst 17.4+]
path: "assignables/assignabledocument/merge(other:)"
---

# merge(other:)

Merge another object of this type into this object.

## Declaration

```swift
@discardableResult mutating func merge(other: AssignableDocument) throws -> Bool
```

## Parameters

- `other`: The other object to merge into this one.

## Discussion

Discussion An exception is thrown if other is not a replica of this document.

## See Also

### Merging the parts

- [merge(_:)](assignables/assignabledocument/merge(_:).md)
- [merge(partData:into:)](assignables/assignabledocument/merge(partdata:into:).md)
- [merge(partID:partDataURL:)](assignables/assignabledocument/merge(partid:partdataurl:).md)
