Skip to content

Releases: danielsaidi/RichTextKit

0.9.5

04 Jan 13:29
Compare
Choose a tag to compare

Thanks to @DominikBucher12 and @msrutek-paylocity, some bugs have been fixed and some formatting adjusted.

✨ Features

  • RichTextColor has a new attribute property.
  • RichTextColor has a new underline color.
  • RichTextFormatSheet has a new colorPickers init parameter.
  • RichTextFormatSidebar has a new colorPickers init parameter.

💡 Adjustments

  • RichTextAttributeReader now allows providing a nil range.
  • RichTextAttributeWriter now handles setRichTextStyle with a switch.
  • RichTextAttributeWriter and RichTextViewComponent shares more code.
  • RichTextFormatSheet now exposes its init params as mutable properties.
  • RichTextFormatSidebar now handles keyboard focus way better than before.
  • RichTextFormatSidebar now exposes its init params as mutable properties.
  • RichTextViewComponent now handles setCurrentRichTextStyle with a switch.
  • RichTextViewComponent now handles setCurrentRichTextStyle with a switch.
  • RichTextViewComponent uses the new color attribute to optimize some code.
  • SwiftFormat now uses consecutiveSpaces.

🐛 Bug Fixes

  • RichTextAttributeWriter now handles strikethrough with a switch.
  • RichTextView now handles initial drag & drop better on iOS.

🗑️ Deprecations

  • RichTextAttributeReader color functions are replaced with a single richTextColor(_:at:).
  • RichTextAttributeWriter color functions are replaced with a single setRichTextColor(_:to:at:).

0.9.4

07 Dec 11:56
Compare
Choose a tag to compare

Thanks to @Mcrich23, the RichTextColorPicker now adjusts foreground and background color for the current color scheme.

✨ Features

  • RichTextColor has a new .undefined type.
  • RichTextColor has a new color adjust function.
  • RichTextColorPicker now takes an RichTextColor.

💡 Adjustments

  • RichTextColorPicker now uses the color type icon by default.
  • RichTextColorPicker now uses the color type color adjustment.

0.9.3

05 Dec 08:38
Compare
Choose a tag to compare

Thanks to @Mcrich23, RichTextKit now supports Mac Catalyst.

Thanks to @msrutek-paylocity the unit tests are in a much better shape.

0.9.2

04 Dec 15:06
Compare
Choose a tag to compare

This version adjusts some display issues when changing text style.

0.9.1

23 Oct 21:21
Compare
Choose a tag to compare

This version reverts the .presentationBackgroundInteraction addition that caused the format sheet to appear behind the keyboard.

0.9.0

17 Oct 19:49
Compare
Choose a tag to compare

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(_:).

0.8.0

31 Aug 16:08
Compare
Choose a tag to compare

This version makes the observable trigger properties internal. These properties were never made to be used from the outside, and all have context functions that set them, so use these functions instead.

IMPORTANT The safeRange adjustment may lead to crashes, although I haven't been able to make it crash. If so, investigate. If you use the safe range yourself, to access attributes, make sure to set the new attribute parameter to true. It's hopefully temporary.

✨ Features

  • RichTextContext has a new attributedString property.
  • RichTextContext's paste functions now use the selected range index as default index.

💡 Adjustments

  • RichTextReader safeRange no longer subtracts 1 from the string length.
  • RichTextReader will now move the cursor after the pasted text, if it's pasted at selected range.
  • RichTextViewComponent image pasting has been rewritten.
  • RichTextViewComponent will now clear the selected range when pasting in images using that range.

🐛 Bug Fixes

  • RichTextReader safe range fix makes pasting text at the end behave better.
  • RichTextViewComponent now properly restores the font size after pasting an image.

🗑️ Deprecations

  • RichTextContext trigger properties have been made internal.

0.7.2

15 Jun 09:41
Compare
Choose a tag to compare

This version makes the keyboard toolbar menu prefer fixed menu order.

0.7.1

13 Jun 14:51
Compare
Choose a tag to compare

✨ Features

  • RichTextColorPicker now supports hiding the icon.
  • RichTextColorPicker now supports specifying quick colors.
  • RichTextColorPickerColor is a new enum with curated colors.

💡 Adjustments

  • RichTextFormatSheet adds curated colors to its color pickers.
  • RichTextFormatSidebar adds curated colors to its color pickers.

🗑️ Deprecations

  • RichTextColorPickerStack has been deprecated.

0.7.0

13 Jun 14:19
Compare
Choose a tag to compare

✨ Features

  • RichTextColorPicker now supports hiding the icon.
  • RichTextColorPicker now supports specifying quick colors.
  • RichTextColorPickerColor is a new enum with curated colors.

💡 Adjustments

  • RichTextFormatSheet adds curated colors to its color pickers.
  • RichTextFormatSidebar adds curated colors to its color pickers.

🗑️ Deprecations

  • RichTextColorPickerStack has been deprecated.