HTML

A type that represents HTML content that can be rendered.

CoreModel.swift:19
protocol HTML<Tag>
Browse conforming types

You 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 }
      }
    }
  }
}