Intro
A banner is a notification that appears on the screen to inform users about a certain event or a change in system status. It contains a short notification text and optionally a button to allow users to take a recommended action.
Banner examples from left to right: error, offline, and syncing banner
Usage
Do
Use a banner to inform users about a certain event or a change in system status within two lines of text.
Don't
Don’t use a banner to show component level messages.
Positive example of a short and concise banner text (left), negative example of text extending beyond two lines (right)
- Keep the banner text short and concise.
- Ensure that the user can still interact with the device and the banner doesn’t cover up important information on the screen.
Anatomy
A. Banner Text
The banner text contains a clear message and, optionally, a recommended action for the user.
B. Icon (Optional)
The icon indicates sync in progress status.
C. “Close” Button (Optional)
The “Close” button allows users to dismiss the banner.
D. Action Button (Optional)
The action button enables users to take a recommended action.
E. Indicator Track (Optional)
The indicator track appears above the banner in a semantic color to indicate a progress or the banner type.
Banner anatomy
Behavior and Interaction
Banner Position
Overlapping Position
An overlapping banner that appears below a navigation bar (left) and an object header (right)
Embedded Position
An embedded banner below a navigation bar (left) and an object header (right)
Scrolling
The screens from the left to right show how the banner sticks to the navigation bar
Content Underneath a Banner
Example where content is hidden underneath a banner
Adaptive Design
The banner follows the global layout margin of the iOS size classes (compact and regular) and therefore adapts to any iPhone or iPad device and its containers.
Banner in compact mode (left) and in regular mode (right)
Variations
Progress Banner
Progress banner
Persistent Banner
Persistent banner (left) and dismissible banner (right)
Error State Banner
Error state banner on compact (left) and regular (right)
Offline State Banner
Offline state banner
Sync Banner
Sync banner
Multi-Message Handling
Multi-message handling detail view on compact screen (left) and regular screen (right)
Resources
Development: UIKit FUIBannerMessageView, UIKit FUIOfflineBannerMessageView, UIKit FUIProgressBannerMessageView, UIKit FUIBannerMultiMessageViewController, SwiftUI BannerMultiMessageSheet, SwiftUI BannerMessage
SAP Fiori for Android: Banners
Related Components/Patterns: Multi-Message Handling