gontovnik / DGRunkeeperSwitch

Runkeeper design switch control
MIT License
1.88k stars 175 forks source link

Highlight the need for setting the autoresizingMask in the README #40

Open jackcolley opened 7 years ago

jackcolley commented 7 years ago

In order for the control to have a flexible width and work with autolayout. You need to add

runkeeperSwitch2.autoresizingMask = [.flexibleWidth]

This is documented in the example project but not in the README. I can't the only one that missed this first time around.

Happy to make a PR updating the README