Skip to content

0.9.8

Compare
Choose a tag to compare
@danielsaidi danielsaidi released this 23 Jan 23:59
· 186 commits to main since this release

This release starts moving types and views that relate to other types into the type namespaces, to make the surface area of the library smaller.

✨ Features

  • RichTextAlignment.Picker has a new style parameter.
  • RichTextCommand is a new namespace for command-related views.
  • RichTextColor.Picker now shows a quick button to reset the color.
  • RichTextLabelValue is a new protocol to harmonize label-compatible label values.

💡 Adjustments

  • Many value types implement RichTextLabelValue to get a label property.
  • All types that implement RichTextLabelValue get a label that has improved accessibility.
  • RichTextColor .adjust now takes an optional color.
  • RichTextColor .allCases no longer returns undefined.
  • RichTextFormatSheet no longer hard-codes an accent color.
  • RichTextStyle views no longer use a style - use foregroundStyle, tint and accentColor instead.

🐛 Bug Fixes

  • Image.symbol(...) removes palette rendering mode to fix incorrect color scheme behavior.
  • RichTextAlignment.Picker now hides its picker label.
  • RichTextColor.Picker no longer auto-adjusts black and white to make it possible to actually set those colors.

🗑️ Deprecations

  • RichTextAction* views have been renamed to RichTextAction.Button*.
  • RichTextAlignment* views have been renamed to RichTextAlignment.*.
  • RichTextArgumentReader deprecates the font name and size functions.
  • RichTextArgumentWriter deprecates the font name and size functions.
  • RichTextColor* views have been renamed to RichTextColor.*.
  • RichTextCommand views are now nested within the new RichTextCommand type.
  • RichTextComponent deprecates the font name and size functions.
  • RichTextDataFormatMenu has been renamed to RichTextDataFormat.Menu.
  • RichTextFont* views have been renamed to RichTextFont.*.
  • RichTextStyle* views have been renamed to RichTextStyle.*.