<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBarButtonItem/creatingFixedGroup()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBarButtonItem(im)creatingFixedGroup"
  },
  "title" : "creatingFixedGroup()"
}
-->

# creatingFixedGroup()

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

```
func creatingFixedGroup() -> UIBarButtonItemGroup
```

## Return Value

A [`UIBarButtonItemGroup`](/documentation/UIKit/UIBarButtonItemGroup) that contains only this bar button item.

## Discussion

A bar button item can only belong to one [`UIBarButtonItemGroup`](/documentation/UIKit/UIBarButtonItemGroup). If you add a bar button item to a new group, the system removes it from its previous group.

---

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)