r/iOSDevelopment • • 9d ago

App development

Post image

Back working on my app

5 Upvotes

4 comments sorted by

1

u/groovy_smoothie 9d ago

This is organized into three files?

1

u/hermess1505 9d ago

Great for a start!

1

u/PM_ME_UR_FAV_UNIX_OS 6d ago

It looks like you might be looking for either an OptionSet (e.g. `struct PhysicsCategory: OptionSet {`) if it is valid for an entity to be described by multiple of those categories, or a simple enum (e.g. `enum PhysicsCategory {` with no need to even specify values) if those categories are mutually exclusive.