I am using this in place of UISwitch inside a collection view cell. So the width constraint is 51 and height is 31 for the view. So nothing is showing up inside that.
But if I change the constraints to say 200 and 100 it will show up correctly. Some framing issue as it seems. How can I resolve this? I am adding this from storyBoard.