---
title: subgroups()
framework: addressbook
role: symbol
role_heading: Instance Method
path: addressbook/abgroup/subgroups()
---

# subgroups()

Returns an array containing a group’s subgroups.

## Declaration

```swift
func subgroups() -> [Any]!
```

## Discussion

Discussion If this group doesn’t contain any groups, this method returns an empty array.

## See Also

### Managing subgroups

- [addSubgroup(_:)](addressbook/abgroup/addsubgroup(_:).md)
- [removeSubgroup(_:)](addressbook/abgroup/removesubgroup(_:).md)
- [parentGroups()](addressbook/abgroup/parentgroups().md)
