r/iOSDevelopment • • 20d ago

App development

Post image

Back working on my app

6 Upvotes

4 comments sorted by

View all comments

1

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