feat: Working on documentation
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user