Skip to content

Glossary: Swift Basics

struct

Also written: structure, structs

A value type that groups properties and methods into your own type, like `MenuItem`. Assigning one makes a copy.

Where the book teaches it

Related terms

classvalue typememberwise initializer