Skip to content

0.9.0

Compare
Choose a tag to compare
@danielsaidi danielsaidi released this 17 Oct 19:49
· 379 commits to main since this release

This version drops support for iOS 14, tvOS 14, macOS 11 and watchOS 7.

This version also consolidates all separate attribute readers and writers into the base attribute reader/writer protocols.

✨ Features

  • RichTextColor is a new enum that defines supported colors that can be set.
  • RichTextColorPicker now works on all platforms.
  • RichTextCommandButton is a new button for commands.
  • RichTextCommandButtonGroup is a new button group for commands.
  • RichTextContext has new enum-based style and color functions.
  • RichTextAttributeReader can handle more colors and superscripting.
  • RichTextAttributeWriter can handle more colors and superscripting.

💡 Adjustments

  • RichTextAttributeReader now has all specific getter functions.
  • RichTextAttributeWriter now has all specific setter functions.
  • RichTextKeyboardToolbar now opens the format sheet in medium size on iPhone.

🗑️ Deprecations

  • All specific attribute reader/writer protocols are deprecated in favor of the base protocols.
  • Many getter/setter functions have been prefixed with richText.
  • RichTextAttributeWriter renames functionality and omits to: param name.
  • RichTextColorPicker initializer has been cleaned up and simplified.
  • RichTextColorPicker.PickerColor has been deprecated.
  • RichTextColorPickerColor has been deprecated.
  • RichTextContext replaces a lot of action-based functions with handle(_:).
  • RichTextIndent has been deprecated.
  • RichTextIndentPicker has been deprecated.
  • RichTextViewComponent and omits to: param name.

💥 Breaking Changes

  • The rich text indent feature has been rewritten to use steps.
  • Some richTextMenu* images are renamed to richTextAction*.
  • RichTextContext replaces a lot of action-based functions with handle(_:).