If you use the storyboard and the current view controller using segue, the segue view attribute that shows you the view controller with a transparent background should be in full screen, as shown in the application.

Then in your view, the controller sets the background color using this:
self.view.backgroundColor = UIColor(white: 0, alpha: 0.4)
source
share