- iOS:
ScrollBottomIndicatorViewin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/SwiftUIViews/ScrollBottomIndicatorView.swift at 1e520fc1 - iOS:
HomeContentView, its spacing below the widgetsin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/Home/HomeContentView.swift at 1e520fc1 - iOS:
crownLogoin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Resources/Assets.xcassets/crownLogo.imageset/crown.svg at 1e520fc1 - Android:
HomeScreen, its crown and the space below itin govuk-once/govuk-mobile-android-app/feature/home/src/main/kotlin/uk/gov/govuk/home/ui/HomeScreen.kt at 9952400f - Android:
crownin govuk-once/govuk-mobile-android-app/design/src/main/res/drawable/crown.xml at 9952400f - Figma: none linked yet
Crown
Ends the home screen: the crown, which grows and fades in as the user scrolls to the end, so they can tell there is nothing more below it.
GOV.UK app component
As the user scrolls to it
Put the crown last on the home screen, after the last widget. It grows and fades in over the last 70pt of the screen’s scroll, the crown and the space below it, and is at its full size at the end of the screen. Scroll these to see it.
Known differences from the app
- The app eases the crown towards each new size as the user scrolls. The crown keeps up with the scroll exactly.
- Firefox can’t yet tie an animation to scrolling, so it draws the crown at its full size.
- A screenshot of the app shows the crown darker, and in its own proportions. The app’s source at 1e520fc1 draws it in the grey of its own image, #858686, in light and dark, stretched to a 40pt square, and this follows the source.
Examples
At the end of the home screen
HTML
<govuk-app-screen>
<govuk-app-text align="center">Tell us what you think about the app</govuk-app-text>
<govuk-app-button variant="grouped-secondary">Give feedback</govuk-app-button>
<govuk-app-crown></govuk-app-crown>
</govuk-app-screen>
Inputs
It takes no attributes.
Content
None.
Outputs
None.
Rules
- Use it only on the home screen, as the app does.
- Put it last in the <govuk-app-screen>, after the last widget and before the tab bar. It grows over the last 70pt of the screen's scroll, so anything after it would leave it part grown.
- It is decorative, so assistive technology skips it. Don't give it a label.
When not to use it
| When | Use instead |
|---|---|
| On any screen but Home | Leave it out: other screens end with their last section. |
| For the GOV.UK wordmark at the top of Home | govuk-app-home-header |
The iOS, Android and Figma sources it was built from
Screenshots of the app's own component, to compare the examples with
iOS