Search code examples
swiftuicollisionbehavior

Can collisionmode be set to nothing?


UiCollisionBehavior has four collision modes: 1. Items 2. Boundaries 3. Init(rawValue: UInt) 4. Everything

Is it possible to set collisionmode to nothing?


Solution

  • UICollisionBehaviorMode is an option set, which means you can pass an 'empty array' ([]) if you don't want any options.