Web Design & UI/UX8 min read

Tab Bar vs Segmented Control: When to Use Each in iOS Design

A tab bar moves people between the main parts of an app. A segmented control switches views on the same screen. Both rebuilt on a music library, the three mistakes that mix them up, and a decision table for ten common cases.

By Boone
XLinkedIn
Tab Bar vs Segmented Control: When to Use Each in iOS Design

A tab bar and a segmented control both show a short row of options with one picked, so teams swap them as if they were the same control. They are not. One moves people to a different part of the app, the other changes how the screen they are on looks. Below: the question that decides it, both controls rebuilt on a music library, three mistakes and a decision table.

The one question: does it change the place or the view?

Ask what happens when someone taps. If they land somewhere else in the app, with its own content, its own history and its own title, it is a tab. If they stay on the same screen and see the same things sorted, filtered or shown another way, it is a segment.

Apple's guidelines draw the same line. A tab bar "lets people navigate between top-level sections of your app." A segmented control provides "closely related choices that affect an object, state, or view," and the page says outright: "For switching between completely separate sections of an app, use a tab bar instead."

Nielsen Norman Group makes the same split for tabs on the web. Navigation tabs "should have dissimilar content and navigate users away from the current page," while in-page tabs "are not for navigation but enable users to alter the content displayed in the panel." A tab bar is the first kind, a segmented control is the second.

The tab bar: it moves people between places

A music app Library screen with a Recently Added list of four albums and a floating capsule tab bar at the bottom with Home, New, Radio and Library, Library highlighted in red

A tab bar sits at the bottom of the screen and stays there on every top level screen. It is right when:

  • Each tab is its own part of the app. Home, New, Radio and Library hold different things, with their own screens underneath.
  • People move between them often. Apple asks designers to weigh each extra tab "against the need for people to frequently access each section."
  • Each tab remembers where people were. Tab bars switch sections "while preserving the current navigation state within each section." Open an album in Library, jump to Radio, come back, and the album is still open.

Labels are single words where possible, which Apple asks for directly: "Use single words whenever possible."

Where it fails: as a set of actions or a filter. Apple's rule is "Use a tab bar to support navigation, not to provide actions." A Compose or Share button does not belong in it, and neither do four ways to sort one list.

The segmented control: it changes the view, not the place

The same music Library screen with a segmented control under the title showing Albums, Songs and Artists, Albums selected, above a list of four albums and the tab bar

A segmented control is a short track of buttons with one picked, placed near the top of the content it changes. It is right when:

  • It changes the view, not the place. Albums, Songs and Artists are three ways to look at the same library. The title stays Library.
  • The options are closely related. Each segment shows the same music cut a different way.
  • There are five or fewer of them. Apple's limit is "no more than about five segments on iPhone," and about five to seven in a wide interface.

Notice that this screen has both. The tab bar says where you are: Library. The segments say how you are looking at it: by album. That is how the two work together, one level apart.

Labels are nouns, as Apple asks: "Use nouns or noun phrases for segment labels." Albums, not Show albums.

Mistake 1: segments used to move around the app

Wrong: Home, New, Radio and Library as segments

A Home screen with a segmented control at the top reading Home, New, Radio and Library, a Made for You list, and no tab bar

Right: the same four places in a tab bar

The same Home screen with a Made for You list and a tab bar at the bottom with Home highlighted

On the left, the main parts of the app live in a segmented control at the top of Home. It looks tidy until someone opens an album. The segments scroll away with the page or vanish on the next screen, and there is no way back to Radio without backing out first.

On the right, the tab bar stays put on every top level screen and keeps each section's place. That is the job Apple gives it, and it is the job segments were never built for.

Mistake 2: a tab bar used to filter one list

Wrong: Albums, Songs, Artists and Playlists as tabs

A Library screen whose bottom tab bar reads Albums, Songs, Artists and Playlists, with Albums highlighted

Right: Albums, Songs and Artists as segments

A Library screen with Albums, Songs and Artists in a segmented control under the title and Home, New, Radio and Library in the tab bar

This is the same mix-up the other way round. The left screen spends the whole tab bar on four views of one library, so Home, New and Radio have nowhere to go. The tab bar is the most valuable row on the screen. Give it to the places people move between, and put views of one list in segments, near the content they change.

Mistake 3: seven segments on a phone

Wrong: seven segments with cut off labels

A Library screen with a seven part segmented control whose labels are cut off to Alb, So, Art, Pla, Ge, Co and Co

Right: seven views as a list

A Library screen listing Playlists, Artists, Albums, Songs, Genres, Composers and Compilations, each row with a red icon and a chevron

Seven segments on a 390 point wide phone, with a 16 point margin on each side, leave each one about 51 points, so every label gets cut off and two of them read Co. The control promised a quick switch and delivered a guessing game.

When there are more than five views, stop forcing them into one row. On the right, each view is a row in a list that opens its own screen. It scales to any number, and every label is readable.

Tab bar or segmented control: a decision table

SituationPickWhy
Home, Search, Library, ProfileTab barSeparate parts of the app people visit often
Albums, Songs, Artists inside LibrarySegmented controlThree views of the same music
Day, Week, Month in a calendarSegmented controlSame events, a different range
List or Map for search resultsSegmented controlSame results shown two ways
Inbox, Chats, Calls, Settings in a messaging appTab barEach one has its own screens underneath
All, Unread in a mail listSegmented controlA filter on one list
A Compose or New Post buttonNeitherAn action, so it goes in the toolbar or a button
Six or more views of one libraryListToo many for segments, too minor for tabs
Monthly or Yearly on a pricing screenSegmented controlSame plans, a different price shown
Settings, used once a monthNeitherApple asks to weigh each tab against how often it is used, so it lives behind Profile

If the screen needs the user to pick one answer out of a few to submit, that is a form, and our dropdown vs radio buttons guide covers that choice.

The values we used

PartValue
Segmented control height32 pt
Segmented track#767680 at 12% (about #EFEFF0 on white)
Selected segment#FFFFFF, inset 2 pt
Segment labels13 pt, semibold when selected
Tab barFloating capsule, 62 pt in our demo
Tab tint#FA2D48
Large Title34 pt bold
Tap a color to copy its code.

The red tint is our own pick for the demo. Tab labels in our screens are larger than the ones iOS ships, so they stay readable at the size you see here. For the rest of a mobile app's navigation, from side menus to top bars, read our navigation design patterns, and for the next choice on the same screen, modal vs bottom sheet and switch vs checkbox.

FAQ

What is the difference between a tab bar and a segmented control?

A tab bar moves people between the main sections of an app and stays at the bottom of the screen. A segmented control switches between views of the same content on one screen.

When should I use a segmented control in iOS?

Use it for closely related views of the same content, like Albums, Songs and Artists, or Day, Week and Month. Keep it to five or fewer segments on iPhone.

How many segments can a segmented control have?

Apple suggests no more than about five on iPhone and about five to seven in a wide interface. With more, use a list of categories instead.

Can I use a segmented control for navigation?

No. Apple's guidelines say to use a tab bar for switching between completely separate sections of an app. Segments are for views of the same screen.

Should a tab bar have a Compose or Add button?

No. Apple's rule is to use a tab bar for navigation, not for actions. Put the button in the toolbar or on the screen it acts on.

Sources

  • Tab bars, Apple Human Interface Guidelines.
  • Segmented controls, Apple Human Interface Guidelines.
  • Evan Sunwall, Tabs, Used Right, Nielsen Norman Group.
  • Album art, names and artists in the demo screens are invented.
  • First published as a carousel on UX Brainy.

More from Brainy Papers

Keep reading