Skip to content

Glossary: Swift Beyond the Basics

metatype

Also written: .self, T.Type

A type used as a value. `[WholesaleOrder].self` passes the type itself to `load`, whose parameter has type `T.Type`.

Where the book teaches it

Related terms

generic functionCodable