---
title: "creatingMovableGroup(customizationIdentifier:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uibarbuttonitem/creatingmovablegroup(customizationidentifier:)"
---

# creatingMovableGroup(customizationIdentifier:)

Places the item in a movable group that a person can move but can’t remove from the navigation bar during layout customization.

## Declaration

```swift
func creatingMovableGroup(customizationIdentifier: String) -> UIBarButtonItemGroup
```

## Parameters

- `customizationIdentifier`: A unique string to identify the group for navigation bar layout customization.

## Return Value

Return Value A UIBarButtonItemGroup that contains only this bar button item.

## Discussion

Discussion A bar button item can only belong to one UIBarButtonItemGroup. If you add a bar button item to a new group, the system removes it from its previous group.

## See Also

### Creating groups

- [creatingOptionalGroup(customizationIdentifier:isInDefaultCustomization:)](uikit/uibarbuttonitem/creatingoptionalgroup(customizationidentifier:isindefaultcustomization:).md)
- [creatingFixedGroup()](uikit/uibarbuttonitem/creatingfixedgroup().md)
