So far we've been working with Swift's built-in types β String, Int, Bool, Array. But what if you need a type that doesn't exist yet? What if you want to represent a ninja, or an anime character, or a guild? That's exactly what structs are for. π₯
A struct lets you create your own custom, complex data type β complete with its own variables and its own functions.
Creating Your First Struct
Here's a simple struct that represents an anime character:
struct AnimeCharacter {






