feat: Working on documentation
All checks were successful
CI / Run tests. (push) Successful in 58s

This commit is contained in:
2024-12-09 09:35:17 -05:00
parent 78a632c3e5
commit 875b1980e0
9 changed files with 100 additions and 8 deletions

View File

@@ -1,10 +1,14 @@
// swiftlint:disable type_name
/// Represents the content of an ``HStack`` or a ``VStack``.
///
///
public struct StackConfiguration {
/// This is an internal convenience type, but needs to remain public
/// for protcol conformances to work properly.
public struct _StackConfiguration {
public let content: [any TextNode]
}
// swiftlint:enable type_name
/// A helper type that removes empty text nodes, and applies a separtor between
/// the array of text nodes.
///
@@ -18,7 +22,7 @@ struct AnySeparatableStackNode<Separator: TextNode>: TextNode {
let separator: Separator
@usableFromInline
init(content: StackConfiguration, separator: Separator) {
init(content: _StackConfiguration, separator: Separator) {
self.content = content.content
self.separator = separator
}