HTML
A type that represents HTML content that can be rendered.
protocol HTML<Tag>
Browse conforming typesYou can create reusable HTML components by conforming to this protocol and implementing the content
property.
struct FeatureList: HTML {
var features: [String]
var content: some HTML {
ul {
for feature in features {
li { feature }
}
}
}
}