---
# System prepended metadata

title: 'Component Proposal: System Failure Banner'

---

#  Component Proposal: System Failure Banner
## Use Cases
- Developers should be able to display a System Failure Banner view
- Developers should be able to apply styles to the System Failure Banner view
- The System Failure Banner view should be configurable with:
    - Some title text
    - Action button
## Demonstration
- TBD
## Accessibility
- The text in the System Failure Banner component will grow with DynamicType sizes.
## Architecture



## 

1. We should take into account the safeArea value of the content view controller.
2. Handle keyboard appearance for the selfSized type relying on safe area. 

3. How to provide the navigation controller as a content controller with autolayout? Get content view height with nav bar height.

    `UIView-Encapsulated-Layout-Height`


5. 











```swift
class SystemFailureBannerView : UIView {
    init(text: String, actionText: String)
    let textLabel: UILabel
    let actionButton: ButtonControl
    let minimumHeight: CGFloat
}
struct SystemFailureBannerStyle {
    let textStyle: TextStyle
    let actionButtonStyle: ButtonControlStyle
    let backgroundColor: UIColor
    let minimumHeight: CGFloat
}
struct SystemFailureBanner {
    let normalStyle: SystemFailureBannerStyle
    let dangerStyle: SystemFailureBannerStyle
}
```