<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITabBarControllerDelegate/tabBarController(_:willEndCustomizing:changed:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITabBarControllerDelegate(im)tabBarController:willEndCustomizingViewControllers:changed:"
  },
  "title" : "tabBarController(_:willEndCustomizing:changed:)"
}
-->

# tabBarController(_:willEndCustomizing:changed:)

Tells the delegate that the tab bar customization sheet is about to be dismissed.

```
optional func tabBarController(_ tabBarController: UITabBarController, willEndCustomizing viewControllers: [UIViewController], changed: Bool)
```

## Parameters

`tabBarController`

The tab bar controller that is being customized.

`viewControllers`

The view controllers of the tab bar controller. The arrangement of the controllers in the array represents the new display order within the tab bar.

`changed`

A Boolean value indicating whether items changed on the tab bar. <doc://com.apple.documentation/documentation/Swift/true> if items changed or <doc://com.apple.documentation/documentation/Swift/false> if they did not.

## Discussion

This method is called in response to the user tapping the Done button on the sheet but before the sheet is dismissed.

---

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)