Skip to content

Commit

Permalink
Simplify and fix typos in description
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Sep 7, 2024
1 parent 581e1a6 commit e3b0421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Neon/TextSystemStyler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import RangeState
///
/// This is the main component that coordinates the styling and invalidation of text. It interfaces with the text system via `TextSystemInterface`. Actual token information is provided from a `TokenProvider`.
///
/// The `TextSystemInterface` is what to update, but it is up to you to tell it when that updating is needed. This is done via the `invalidate(_:)` call, as well as `visibleContentDidChange`. It will be also be done automatically when the content changes.
/// The `TextSystemInterface` is what to update, but it is up to you to tell it when that updating is needed. This is done via the `invalidate(_:)` call, as well as `visibleContentDidChange()`. It will be also be done automatically when the content changes.
///
/// > Note: A `Styler` must be informed of all text content changes made using `didChangeContent(in:, delta:)` and changes to the content visibility with `contentVisibleRectChanged(_:_`.
/// > Note: A `TextSystemStyler` must be informed of all text content changes made using `didChangeContent(in:, delta:)`.
@MainActor
public final class TextSystemStyler<Interface: TextSystemInterface> {
private let textSystem: Interface
Expand Down

0 comments on commit e3b0421

Please sign in to comment.