+#if DEBUG +extension UIView { + @available(*, deprecated, message: "This warning is here so you don't ship this code") + @objc func exerciseAmbiguityInLayoutRepeatedly() { + if self.hasAmbiguousLayout { + Timer.scheduledTimer(timeInterval: 0.5, + target: self, + selector: #selector(UIView.exerciseAmbiguityInLayout), + userInfo: nil, + repeats: true) + } + } +} +#endif