I want to place a Custom UIView over every view controller screen. I want to do this to show the download progress of video. I create a custom view using xib and use this code -:
let window = UIApplication.shared.keyWindow!
window.subviews(CustomView)
but this code is not working how to resolve this issue.
2
Answers
You can write this code to add the subview in the viewcontroller.