CodeX
Published in

CodeX

CODEX

Swift Basics: Introduction to Extensions

Learn what is an extension and how to use extensions to add new functionality to an existing type.

Photo by AltumCode on Unsplash

In Swift, you can use extensions to add new functionality to an existing type (class, structure, enumeration, or protocol).

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store