Skip to content

0.3.0

Compare
Choose a tag to compare
@danielsaidi danielsaidi released this 15 Dec 10:45
· 518 commits to main since this release

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 new dismissKeyboard action.
  • RichTextAction has new incrementFontSize and decrementFontSize actions.
  • RichTextAction has new undo and redo name aliases.
  • RichTextActionButton has a new fillVertically 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 new strikethrough style.
  • RichTextStyleToggle has a new fillVertically 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 and RichTextStyleToggleStack now fills vertically.
  • RichTextStyleButton and RichTextStyleToggle 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 a RichTextContext instea dof a binding.