pmusolino / Wormholy

iOS network debugging, like a wizard 🧙‍♂️
MIT License
2.33k stars 187 forks source link

Programmatically enable/disable the shake gesture #17

Closed davedelong closed 6 years ago

davedelong commented 6 years ago

Adds a public property on the Wormholy class called shakeEnabled.

If untouched, this value will default to the environment variable setting, fall back to looking the command-line arguments passed to the program, and otherwise default to false.

However, at any time you can do Wormholy.shakeEnabled = true // or false to enable or disable the shake gesture. If you set this value before a shake has occurred, then the default logic is never executed (in accordance with how lazy properties work).

Addresses #12

pmusolino commented 6 years ago

Good work Dave!

Thanks -Paolo