Bot releases are hidden (Show)
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.
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.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.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.Image
has new rich text-specific images.NSImage
cgImage
and jpegData
are now public.NSAttributedString
has a new withBlackText()
extension.NSAttributedString
has a new init extension file.RichTextAction
is a new enum that defines rich text actions.RichTextActionButton
is a new view that can trigger a RichTextAction.RichTextActionButtonStack
is a new view that can list multiple RichTextActionButton views.RichTextContext
has new bindings.RichTextCoordinator
now subscribes to highlighting style changes.RichTextCoordinator
cancellables
are now public.RichTextCoordinator
resetHighlightedRangeAppearance()
is now public.RichTextCoordinator
text
is now mutable.RichTextColorPicker
is a new color picker.RichTextColorPickerStack
is a new view that can list multiple RichTextColorPicker views.RichTextDataFormat
has a new vendor-specific data format.RichTextFontSizePickerStack
is a new view that can list multiple RichTextFontSizePicker views.RichTextImageAttachment
is now open for inheritance.RichTextStyleButton
has a new button style.RichTextStyleToggle
is a new style toggle button.RichTextStyleToggleStack
is a new view that can list multiple RichTextStyleToggle views.RichTextView
is now open for inheritance.RichTextView
drop interaction functionality is now open.String
extensions have been made public.RichTextAlignmentPicker
is now segmented by default.Font
picker components have been renamed with a RichText
prefix.FontSizePicker
sizes
has been renamed to values
.PdfDataWriter
has been renamed to PdfDataReader
.RichTextAlignmentPicker
alignments
has been renamed to values
.RichTextContext
alignment
has been renamed to textAlignment
.RichTextContext
standardHighlightingStyle
has been renamed to highlightingStyle
.RichTextCoordinator
context
has been renamed to richTextContext
.RichTextDataWriter
richTextData(with:)
has been renamed to richTextData(for:)
.RichTextViewRepresentable
has been renamed to RichTextViewComponent
.RichTextView
alert function title
parameter is no longer implicit.RichTextViewRepresentable
decrementFontSize
has been renamed to decrementCurrentFontSize
and has no range parameter.RichTextViewRepresentable
incrementFontSize
has been renamed to incrementCurrentFontSize
and has no range parameter.This is the first beta release of RichTextKit. 🚀
The release includes the following.
RichTextView
is a replacement for UITextView
and NSTextView
.RichTextEditor
is a SwiftUI view that embeds a RichTextView
.RichTextContext
is used to inspect and interact with a RichTextEditor
.RichTextCoordinator
is used by a RichTextEditor
to keep the text view and context in sync.RichTextKit adds extensive support for a bunch of rich text features: