struct VersionedVideo: HtmlProducer { let sources: [VideoBlock.Source] let options: [VideoBlock.Option] func populate(_ result: inout String) { result += "Video not supported." for source in sources.sorted(using: { $0.type.order }) { result += "" } result += "" } private var optionString: String { options.map { " " + $0.rawValue }.joined() } }