I\'ve looked at a dozen SO questions on this topic, and none of the answers have worked for me. Maybe this will help get me back on the right path.
Imagine this set
Here is Swift 3 update of @Pablo's answer, which off course worked great in my case.
if let window = UIApplication.shared.keyWindow { parent.convert(child.frame.origin, to: window) }