Skip to content

Glossary: Swift Basics

method

Also written: methods, method requirement

A function that belongs to a type and is called with a dot, like `name.uppercased()`. Protocols list method requirements without bodies.

Where the book teaches it

Related terms

functionprotocol