Extensions
The following extensions are available globally.
-
Declaration
Swift
extension UITableViewCell: ReusableView -
Declaration
Swift
extension UICollectionViewCell: ReusableView -
Declaration
Swift
public extension UIBarButtonItem -
This is an extension that modifies the navigationBar according to the Design System. It represents the component AppBar - Top.
Note
This component is available in the following variants:- ✅ Standard
- ⚠️ Base
With the following attribute status:
- ✅ Action right
- ✅ Action left
- Color:
- ✅
Default - ✅
Primary - ✅
None - ✅
Inverse
- ✅
- Elevation:
- ✅
True - ✅
False
- ✅
- Content position:
- ✅
Center(default) - ⚠️
Left
- ✅
- Content type:
- ✅
Text - ✅
Media - ⚠️
Search
- ✅
- Content proeminent:
- ✅
False(default) - ⚠️
True
- ✅
- Behavior:
- ✅
Fixed(default) - ⚠️
Scroll
- ✅
The navigation bar colors change accordint to the current brand configured and to the light/dark mode properties. The component is available only with the variant
standard.Examples of usage:
navigationController.configure(color: .primary) navigationController.configure(elevation: true)See moreRequires
It’s necessary to configure the Design System with a theme or fatalError will be raised.
DesignSystem().configure(with: AvailableTheme)Declaration
Swift
public extension UINavigationController -
This is an extension that modifies the navigationBar views according to the Design System. It represents the component AppBar - Top.
Examples of usage:
viewController.configure(actionRight: [iconButton, customView]) viewController.configure(actionLeft: iconButton)See moreRequires
It’s necessary to configure the Design System with a theme or fatalError will be raised.
DesignSystem().configure(with: AvailableTheme)Declaration
Swift
public extension UIViewController -
Declaration
Swift
extension UICollectionView -
Declaration
Swift
extension UITableView