- iOS:
SettingsViewin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Settings/SettingsView.swift at 3813aa2a - iOS:
SettingsViewModel, its sections and rowsin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/ViewModels/Settings/SettingsViewModel.swift at 3813aa2a - Android:
SettingsScreenin govuk-once/govuk-mobile-android-app/feature/settings/src/main/kotlin/uk/gov/govuk/settings/ui/SettingsScreen.kt at ed6237d6 - Figma: none linked yet
Settings list
A screen of settings and links, in grouped lists, for the user to scan and choose from. Each row opens a screen, opens a web page, shows a value or turns something on or off.
From the app: Settings, the root of the Settings tab.
When to use it
- The user needs to see and change several settings or preferences in one place.
- A section of the app needs a menu of the screens and pages under it, such as account, privacy and help.
- Rows fall into a few groups, each with an optional title above and line of explanation below.
- It is the root screen of a tab, such as Settings.
When not to use it
| If | Use instead |
|---|---|
| The screen asks the user to confirm one action, such as signing out or deleting something. | Confirmation |
| The screen explains one thing in paragraphs, with at most one action. | Information page |
| The screen tells the user that something has finished. | Outcome |
| The user is filling in details, such as a name or registration number. | A screen with the text field and a primary button in the button stack |
Example
Settings list, in light and dark
HTML
<govuk-app-screen>
<govuk-app-nav-bar title="Settings" large-title></govuk-app-nav-bar>
<govuk-app-grouped-list footer="A line under a group, to explain the rows in it.">
<govuk-app-grouped-list-row type="information" description="name@example.com">Your account</govuk-app-grouped-list-row>
<govuk-app-grouped-list-row type="link" href="https://www.gov.uk">Manage your account</govuk-app-grouped-list-row>
</govuk-app-grouped-list>
<govuk-app-grouped-list>
<govuk-app-grouped-list-row type="detail" detail="Off" name="notifications">Notifications</govuk-app-grouped-list-row>
<govuk-app-grouped-list-row name="face-id">Face ID</govuk-app-grouped-list-row>
<govuk-app-grouped-list-row type="toggle" name="statistics" checked>Share app usage statistics</govuk-app-grouped-list-row>
</govuk-app-grouped-list>
<govuk-app-grouped-list title="Privacy and legal">
<govuk-app-grouped-list-row type="link" href="https://www.gov.uk">Privacy notice</govuk-app-grouped-list-row>
<govuk-app-grouped-list-row type="link" href="https://www.gov.uk">Terms and conditions</govuk-app-grouped-list-row>
<govuk-app-grouped-list-row name="your-data">Your app data</govuk-app-grouped-list-row>
</govuk-app-grouped-list>
<govuk-app-grouped-list>
<govuk-app-grouped-list-row type="detail" destructive name="sign-out">Sign out</govuk-app-grouped-list-row>
</govuk-app-grouped-list>
<govuk-app-tab-bar>
<govuk-app-tab-bar-item icon="home" name="home">Home</govuk-app-tab-bar-item>
<govuk-app-tab-bar-item icon="chat_bubble" name="chat">Chat</govuk-app-tab-bar-item>
<govuk-app-tab-bar-item icon="settings" name="settings" selected>Settings</govuk-app-tab-bar-item>
</govuk-app-tab-bar>
</govuk-app-screen>
Using it
- Keep the tab bar only on a tab's root screen. A list pushed from another screen has a back button in its navigation bar instead, and no tab bar.
- Put a destructive row, such as Sign out, in a group of its own, last.
- Give each row that opens a screen an href to that page, in place of its name, in a prototype of several pages.
Components it uses
- Screen,
<govuk-app-screen> - Navigation bar,
<govuk-app-nav-bar> - Grouped list,
<govuk-app-grouped-list> - Tab bar,
<govuk-app-tab-bar>
The app’s iOS and Android screens it was taken from