This commit is contained in:
@@ -2,6 +2,23 @@
|
||||
///
|
||||
/// This allows you to group content together, which can optionally be
|
||||
/// styled.
|
||||
///
|
||||
/// ### Example:
|
||||
///
|
||||
/// ```swift
|
||||
/// let group = Group {
|
||||
/// "My headline."
|
||||
/// "\n"
|
||||
/// "Some content".color(.green)
|
||||
/// "\n"
|
||||
/// "Foo Bar".italic()
|
||||
/// }
|
||||
///
|
||||
/// print(group.render())
|
||||
/// ```
|
||||
///
|
||||
/// 
|
||||
///
|
||||
public struct Group<Content: TextNode>: TextNode {
|
||||
|
||||
@usableFromInline
|
||||
|
||||
Reference in New Issue
Block a user