---
title: "tabBarController(_:willEndCustomizing:changed:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitabbarcontrollerdelegate/tabbarcontroller(_:willendcustomizing:changed:)"
---

# tabBarController(_:willEndCustomizing:changed:)

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

## Declaration

```swift
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

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

## See Also

### Managing tab bar customizations

- [tabBarController(_:willBeginCustomizing:)](uikit/uitabbarcontrollerdelegate/tabbarcontroller(_:willbegincustomizing:).md)
- [tabBarController(_:didEndCustomizing:changed:)](uikit/uitabbarcontrollerdelegate/tabbarcontroller(_:didendcustomizing:changed:).md)
