r/iOSDevelopment • • 16d ago

App development

Post image

Back working on my app

6 Upvotes

4 comments sorted by

1

u/groovy_smoothie 16d ago

This is organized into three files?

1

u/hermess1505 16d ago

Great for a start!

1

u/PM_ME_UR_FAV_UNIX_OS 13d 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.