---
title: "add(_:)"
framework: addressbook
role: symbol
role_heading: Instance Method
path: "addressbook/abaddressbook/add(_:)"
---

# add(_:)

Adds an ABPerson or ABGroup record to the Address Book database.

## Declaration

```swift
func add(_ record: ABRecord!) -> Bool
```

## Parameters

- `record`: The record to add.

## Return Value

Return Value true if the record was added successfully; otherwise false.

## Discussion

Discussion If the record argument is nil, this method raises an exception. Your changes are not committed until you call the save() method. It is more efficient to use the  ABRecord method init(addressBook:) when possible.

## See Also

### Adding and Removing Records

- [add(_:error:)](addressbook/abaddressbook/add(_:error:).md)
- [remove(_:error:)](addressbook/abaddressbook/remove(_:error:).md)
- [remove(_:)](addressbook/abaddressbook/remove(_:).md)
