Contents

encode(to:)

Serializes a surface to the specified encoder.

Declaration

func encode(to encoder: any Encoder) throws

Parameters

  • encoder:

    An object that the surface serializes to.