AttributeEncoder
SVG.AttributeEncoder.swift:5@dynamicMemberLookup @frozen struct AttributeEncoder@dynamicMemberLookup @frozen struct AttributeEncoderimport DOMThis module defines the basic infrastructure common to all DOM encoding interfaces.
@frozen struct SVGinit() Creates a completely empty SVG document.
init(stringLiteral: String) Creates an SVG document containing the exact contents of the given string literal.
init(with encode: (inout SVG.ContentEncoder) throws -> ()) rethrows Encodes an SVG fragment with the provided closure.
var description: String { get }var encoder: SVG.ContentEncodervar utf8: [UInt8] { get }protocol OutputStreamable@frozen enum Attribute@frozen enum ContainerElement@frozen struct ContentEncoder@frozen enum Embeddedprotocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
var xmlns: String? { get set }Sets the XML namespace, if non-nil. This should almost always be the string "http://www.w3.org/2000/svg".
subscript(dynamicMember path: KeyPath<SVG.Attribute.Factory, SVG.Attribute>) -> String? { get set } subscript(dynamicMember path: KeyPath<SVG.Attribute.Factory, SVG.Attribute>) -> Bool { get set } subscript(name name: SVG.Attribute) -> String? { get set } subscript(name name: SVG.Attribute) -> Bool { get set } Serializes an empty attribute, if the assigned boolean is true. Does nothing if it is false. The getter always returns false.