Structure
ChildMarkup
A property wrapper that represents general-purpose markup within a directive.
@propertyWrapper struct ChildMarkup<Value>
Discussion
This property wrapper is used internally in Swift-DocC when declaring directives that support child markup content.
class Column: Semantic, AutomaticDirectiveConvertible {
let originalMarkup: BlockDirective
@ChildMarkup(numberOfParagraphs: .oneOrMore)
public private(set) var content: MarkupContainer
static var keyPaths: [String : AnyKeyPath] = [
"content" : \Column._content,
]
init(originalMarkup: BlockDirective) {
self.originalMarkup = originalMarkup
}
}
Warning
This property wrapper is exposed as public API of SwiftDocC so that clients have access to its projected value, but it is unsupported to attach this property wrapper to new declarations outside of SwiftDocC.
Topics
Instance Properties