---
title: "setTabs(_:animated:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitabbarcontroller/settabs(_:animated:)"
---

# setTabs(_:animated:)

Sets the root tabs of the tab bar controller, with an option to animate the change.

## Declaration

```swift
func setTabs(_ tabs: [UITab], animated: Bool)
```

## See Also

### Assigning tabs

- [tabs](uikit/uitabbarcontroller/tabs.md)
