- iOS:
UINavigationBar.appearance().tintColorin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/SupportingFiles/AppDelegate.swift at 1e520fc1 - iOS:
UINavigationController .home, .settings, .chatin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Extensions/UIKit/UINavigationController+Convenience.swift at 1e520fc1 - iOS:
largeTitleDisplayMode, navigationBarTintColorin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Builders/ViewControllerBuilder.swift at 1e520fc1 - iOS:
closeButtonin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Travel/CountryListView.swift at 1e520fc1 - iOS:
doneButtonin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Topics/EditTopicsView.swift at 1e520fc1 - iOS:
HostingViewControllerin govuk-once/govuk-mobile-ios-gov-kit/GovKit/Sources/ViewControllers/HostingViewController.swift at 8a7641e - Figma: none linked yet
- Apple Human Interface Guidelines: Navigation bars
- Material Symbols, the icons it draws
Navigation bar
Says which screen the user is on, takes them back to the screen they came from, and holds the screen's actions, such as close, done or edit. It sits at the top of every screen that isn't a top-level one, and of some that are.
Native component
Over a screen
The navigation bar sticks to the top of the screen, and the content scrolls under it. A large title scrolls with the content, and moves into the bar once it has gone under it. The bar then takes a fill, with a keyline along its bottom. Scroll these to see it.
November 2026
Check if you need a UK visa. Renew or replace your adult passport. Check your State Pension age. Tax your vehicle. Find out how much Income Tax you pay. Register to vote. Apply for a provisional driving licence.
October 2026
Get an MOT reminder. Check if you can get Pension Credit. Apply for a Blue Badge. Find your local council. Report a problem with a road. Check bin collection days. Pay your council tax.
November 2026
Check if you need a UK visa. Renew or replace your adult passport. Check your State Pension age. Tax your vehicle. Find out how much Income Tax you pay. Register to vote. Apply for a provisional driving licence.
October 2026
Get an MOT reminder. Check if you can get Pension Credit. Apply for a Blue Badge. Find your local council. Report a problem with a road. Check bin collection days. Pay your council tax.
Status bar
The bar starts at the top of <govuk-app>. If the page draws the status bar above the root, as a phone frame usually does, there’s nothing to set.
In iOS 26 the content scrolls up under the status bar too, as in the example above. To draw that, put the root at the top of the screen, and leave room for the status bar over it by setting --govuk-app-inset-top on the root, such as 62px for an iPhone 17 Pro:
govuk-app {
--govuk-app-inset-top: 62px;
}
Icons
The app’s actions use SF Symbols, which may only be used on Apple’s platforms, so the bar draws Material Symbols instead, rounded. Give an action any symbol’s name as its icon. The closest to the app’s are close, check and more_horiz.
Known differences from the app
- The glass is a blurred, translucent fill. It doesn’t bend the content behind it, or catch the light at its edges.
- Content going under the bar is blurred and faded, as iOS 26 does, but not as smoothly.
- The fill and keyline behind a large title in the bar are measured from a screenshot of the app in light mode. Their dark colours are a guess.
- The large title doesn’t stretch when the screen is pulled down, and the title fades into the bar rather than sliding.
- The back button doesn’t offer a menu of earlier screens when it is held down.
Examples
Back and an inline title
HTML
<govuk-app-nav-bar title="Notifications" back></govuk-app-nav-bar>
Large title
HTML
<govuk-app-nav-bar title="Settings" large-title></govuk-app-nav-bar>
Modal with close
HTML
<govuk-app-nav-bar title="Select a country">
<govuk-app-nav-bar-item icon="close" name="close">Close</govuk-app-nav-bar-item>
</govuk-app-nav-bar>
Back, large title and a text action
HTML
<govuk-app-nav-bar title="Pages you've visited" large-title back>
<govuk-app-nav-bar-item name="edit">Edit</govuk-app-nav-bar-item>
</govuk-app-nav-bar>
Close on the left, on a full-screen cover
HTML
<govuk-app-nav-bar>
<govuk-app-nav-bar-item icon="close" name="close" slot="leading">Close</govuk-app-nav-bar-item>
</govuk-app-nav-bar>
Two actions, sharing their glass
HTML
<govuk-app-nav-bar title="Vehicle" back>
<govuk-app-nav-bar-item icon="share" name="share">Share</govuk-app-nav-bar-item>
<govuk-app-nav-bar-item icon="more_horiz" name="menu">More</govuk-app-nav-bar-item>
</govuk-app-nav-bar>
Links to other pages
HTML
<govuk-app-nav-bar title="Notifications" back-href="#settings">
<govuk-app-nav-bar-item icon="check" href="#settings">Done</govuk-app-nav-bar-item>
</govuk-app-nav-bar>
Inputs
| Attribute | Type | Default | Description |
|---|---|---|---|
title |
string |
The screen's title, drawn in the bar as the screen's heading. Leave it off where the content starts with its own heading. | |
large-title |
boolean |
false |
Draws the title large, below the bar. It scrolls with the content, and the title appears in the bar once it has gone under it. |
back |
boolean |
false |
Shows a back button, named back, for the page to listen for. |
back-href |
string |
Shows a back button that is a link to this page. Use it in place of back in a prototype of several pages. |
Content
Up to three <govuk-app-nav-bar-item> elements, the screen's actions, drawn on the right in order. One with slot="leading" is drawn on the left instead, where the back button would be, as the app draws close on a full-screen cover. Each takes an icon attribute, the name of a Material Symbol (such as close, check or more_horiz), or none, to draw its text instead; an href, to make it a link to another page, or name and value, to tell it apart as a button. What is written between its tags is its text, or, with an icon, its name for screen readers.
Outputs
click: From the back button, a button named back, or from an action's button, with the name and value it was given, when it is pressed. A back button or action with an href goes to its page instead.
Rules
- Put it first in the screen, before the content. It sticks to the top of the screen and the content scrolls under it.
- Give a screen a title unless its content starts with its own heading, as the app's forms do, such as What is your address?
- Use a large title where the app does, such as Settings and Pages you've visited. Use the inline title on other screens, and on forms and modals.
- Show a back button on every screen pushed on top of another, and never on a top-level screen or the first screen of a modal.
- Close a modal with an action on the right, icon close, named for what it does. Confirm one with icon check.
- Use icons for the actions iOS draws as icons (close, check, more_horiz for a menu). Use a word, such as Edit, for anything else.
- Put close on the left, with slot="leading", only on a full-screen cover, as the app does: a sheet has it on the right.
- Keep titles short enough to fit on one line. A long title is cut off.
When not to use it
| When | Use instead |
|---|---|
| On Home | govuk-app-home-header |
| For the action that moves the journey on, such as Continue | govuk-app-button-stack |
| To move between the app's sections, Home, Chat and Settings | govuk-app-tab-bar |
| For a heading within the content, such as a form's question | govuk-app-heading level="1" size="title-1" |
iOS