- 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 - iOS:
FaceIdSettingsViewin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/SwiftUIViews/Settings/FaceIdSettingsView.swift at 3813aa2a - iOS:
SARExplainerView, Your app datain govuk-once/govuk-mobile-ios-app/Production/govuk_ios/SwiftUIViews/Settings/SARExplainerView.swift at 3813aa2a - iOS:
SignOutConfirmationViewin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/SignOut/SignOutConfirmationView.swift at 3813aa2a - iOS:
SignOutConfirmationCoordinator, which presents it as a sheetin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Coordinators/SignOutConfirmationCoordinator.swift at 3813aa2a - iOS:
SignInSuccessViewModel, You’ve signed outin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/ViewModels/SignInSuccessViewModel.swift at 3813aa2a - iOS:
signedOutTitlein govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Resources/Strings/SignOut.xcstrings at 3813aa2a
Settings
The app’s Settings tab and every screen it opens in the app today: Face ID, Your app data, and signing out, through the confirmation, to You’ve signed out. Their pages link to each other as the app’s screens do.
From the app: Settings, the root of the Settings tab, and the screens it opens: Face ID, Your app data, the sign-out confirmation and You’ve signed out. To start a prototype from it, copy the folder src/templates/settings/ from the repository.
When to start from it
- Prototyping a new setting, or a change to an existing one.
- Prototyping a new screen opened from Settings, such as a page about the user’s account or data.
- Prototyping a journey that starts in Settings, such as signing out or managing notifications.
- Testing a change to the wording of Settings or the screens it opens.
Screens
The journey starts on the first. Open one to try it, in a phone.
- Settings
-
The root of the Settings tab, with the app’s own rows. Face ID, Your app data and Sign out open the other screens.
index.html - Open Settings
- Face ID
-
Opened from the Face ID row. Explains Face ID, with a button to change it in the phone’s settings, and a back button to Settings.
face-id.html - Open Face ID
- Your app data
-
Opened from the Your app data row. Explains the data the app keeps, with a button to request it, and a back button to Settings.
your-app-data.html - Open Your app data
- Are you sure you want to sign out?
-
Opened from the Sign out row, as a sheet over Settings. Sign out goes on to You’ve signed out; Cancel and close return to Settings.
sign-out.html - Open Are you sure you want to sign out?
- You’ve signed out
-
After signing out. Signing in again returns to Settings.
signed-out.html - Open You’ve signed out
Using it
- Copy the whole folder, so the screens keep linking to each other. Delete the screens you don’t need, and the rows that open them.
- Each page has a comment at its top saying what to change and what to leave.
- Your accounts, Messages, Notifications and Open source licences go nowhere, as the library has no screens for them. Give a row an href to a page of yours to make it open one.
- Home and Chat on the tab bar open the Home and Chat templates, if they’re beside this one.
- Signing out and signing in again only move between pages: nothing is remembered.
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> - Text,
<govuk-app-text> - Bulleted list,
<govuk-app-bulleted-list> - Heading,
<govuk-app-heading> - Button,
<govuk-app-button> - Button stack,
<govuk-app-button-stack> - Sheet,
<govuk-app-sheet>