How to make the UIView to cover the whole screen. I have a black UIView and it's alpha value is 0.5. It has a subview on it as well. Right now the blackView is below the navigationBar. I want it to cover the whole screen including navigationBar.
As you can see in the picture below. The dark view behind the popup view should cover the whole screen. The constraints I am using for the view is simply:
view.addsubView(blackView)
_ = blackview.anchor(view.topAnchor, left: view.leftAnchor, bottom: view.bottomAnchor, right: view.rightAnchor, topConstant: 0, leftConstant: 0, bottomConstant: 0, rightConstant: 0, widthConstant: 0, heightConstant: 0)
The pop up window is a subview of the blackView:
blackView.addSubview(reminderPopUpView)
How can I do this?