In the tutorial you mentioned about one possible improvement is to change the color outside the mask. I have been trying to achieve that to no avail. If I put the mask on the ViewController, I can set the window.backgroundColor to change the color outside the mask. However, putting the mask on the ViewController caused the animation failed to work. If I put the mask on the window's layer like your tutorial, I couldn't change the color outside the mask. Any idea how to achieve this? Thanks!
In the tutorial you mentioned about one possible improvement is to change the color outside the mask. I have been trying to achieve that to no avail. If I put the mask on the ViewController, I can set the window.backgroundColor to change the color outside the mask. However, putting the mask on the ViewController caused the animation failed to work. If I put the mask on the window's layer like your tutorial, I couldn't change the color outside the mask. Any idea how to achieve this? Thanks!