0.3.0
This release adds support for strikethrough and cleans up some 0.2 code. It also adds a bunch of new views, such as toolbars, sidebars, sheets etc., as well as support for keyboard shortcuts, localization and accessibility.
✨ New Features
Bundle.richTextKit
is a new bundle extension that works in external previews.RichTextAction
has a newdismissKeyboard
action.RichTextAction
has newincrementFontSize
anddecrementFontSize
actions.RichTextAction
has newundo
andredo
name aliases.RichTextActionButton
has a newfillVertically
parameter.RichTextFormatSheet
is a new view that collects a bunch of text formatting controls.RichTextFormatSidebar
is a new view that collects a bunch of text formatting controls.RichTextKeyboardToolbar
is a new toolbar that can be used on iOS.RichTextKeyboardToolbarMenu
is a new toolbar menu.RichTextStyle
has a newstrikethrough
style.RichTextStyleToggle
has a newfillVertically
parameter.RTKL10n
is a new enum with localized strings, which is used to localize multiple types.View+KeyboardShortcuts
is a new view extension to simplify binding keyboard shortcuts to views.- The various stack views now support
💡 Behavior changes
RichTextActionButtonStack
andRichTextStyleToggleStack
now fills vertically.RichTextStyleButton
andRichTextStyleToggle
now applies keyboard shortcuts.RichTextStyleToggle
applies a toggle-like style to fallbacks on older OS versions.- Many pickers, buttons and toggles apply a localized accessibility label.
- More buttons apply a rectangular content shape.
💥 Breaking Changes
RichTextActionButtonStack
no longer has default actions.RichTextActionButtonStack
no longer has a bordered init parameter.RichTextAlignmentPicker
no longer has title and segmented parameters.RichTextFontSizePickerStack
no longer has a bordered init parameter.RichTextFontSizePickerStack
now requires aRichTextContext
instea dof a binding.