Releases: SchweizerischeBundesbahnen/mobile-ios-design-swiftui
Releases · SchweizerischeBundesbahnen/mobile-ios-design-swiftui
Tiny SBBLoadingIndicator + Improvements
v1.2.1 - 8 July 2024
Features
- SBBLoadingIndicator: now also exists in size
.tiny
Improvements
- SBBListItem:
rightImage
can also be displayed as is (without circle) - Update icons to 0.1.82
Bugfix
- SBBTextArea and SBBTextField accessibility
New components + Improvements
Features
- New components:
- SBBFooterBox to display a footer
- SBBHeaderBox to display a footer
Improvements
- New icons
- SBBModalView: added the option to hide the cancel button.
Bugfix
- SBBNotification and SBBPromotionBox: elements are now correctly read by VoiceOver.
SBBNotifications: hidden icon
Improvements
- SBBNotifications: the icon can be hidden
SBBNotifications: retry button
Improvements
- SBBNotifications: a retry button is added
Typographie renaming + SBBNotification update
Improvements
- SBBNotification: can also stay open (close button not present).
Deprecations
- Renaming of the typographie names according to the revised DSM (e.g. xlarge instead of SBBHeader). Old typographie names are deprecated and will be removed in a future version.
New components + Improvements
Features
- New components:
- SBBUpDnCounterView to display an up and down counter
- SBBMessage to display a message with an illustration
- SBBPromotionBox to display a promotion box
- SBBDatePicker to display a date picker
- SBBStatus to display a status (alert, warning, success or info)
- SBBNotification to display a status notification (alert, warning, success or info)
- SBBTabView: a badge can be added to the tab bar icon
- New color .redDark is added
Improvements
- SBBTabView: accessibility area for a tab is bigger
- SBBOnboardingView: accessibility is improved (e.g. text completely visible with all font sizes)
- SBBMessage: accessibility label for 'retry' button is added
- SBBIcons updated
Deprecations
- Initializing an SBB List Item with
init(label: String, image: Image)
orinit(label: String, type: SBBListItemType)
is deprecated and will be removed in a future version.image
is replaced withleftImage
and the right image (decided by SBBListItemType) can now be customized usingrightImage
.
SBBTabBar bugfix
SBBTabbar now keeps the Navigation persistence when switching Tab. Before it always jumped back to Root View.
SBBSegmentedPicker update
Updated the SBBSegmentedPicker according to the new design template
SBB Icons Enum
Improvements
re-import the newest SBB Icons / SBB Pictos
All SBB Icons / SBB Pictos are now present inside the "SBBIconName.swift" enum. You can create an SBB Image with the init(sbbIcon: SBBIcon) initializer
Deprecations
Initializing an SBB Image with init(sbbName: String) or init(sbbName: String, size: SBBIconSize) is deprecated and will be removed in a future version
Breaking changes
Attention: certain icons have been renamed. Please check your code whether the used icon-string exists. Better: migrate to the new init(sbbIcon: SBBIcon) initializer
SBBTextField improvements
Some SBBTextfields improvements:
- Boxed available.
- Clear button can be disabled.
- Bottom line optional even in edit mode.