feat: Working on documentation

This commit is contained in:
2024-12-06 17:01:11 -05:00
parent f0873d3b44
commit 1a559e0236
11 changed files with 191 additions and 73 deletions

View File

@@ -1,3 +1,7 @@
/// A type that can modify a text node before it is rendered.
///
/// This allows you to create custom styles for your text-nodes.
///
public protocol TextModifier {
// swiftlint:disable type_name
associatedtype _Body: TextNode
@@ -6,6 +10,10 @@ public protocol TextModifier {
associatedtype Content
/// Apply custom styling to the text node.
///
/// - Parameters:
/// - content: The text node to be styled.
@TextBuilder
func render(content: Content) -> Body
}