The foregroundLayer frame is set using the frame of the button, which is an issue if the button's origin is non zero.
The foregroundLayer frame is set using the frame of the button, which is an issue if the button's origin is non zero.