Skip to content

Instantly share code, notes, and snippets.

@joshavant
Created November 17, 2018 07:40
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save joshavant/ee21193cf8fc68d2fec5a7752f22f2b0 to your computer and use it in GitHub Desktop.
Save joshavant/ee21193cf8fc68d2fec5a7752f22f2b0 to your computer and use it in GitHub Desktop.
Ambiguity Treadmill
extension UIView {
@objc func exerciseAmbiguityInLayoutRepeatedly() {
if self.hasAmbiguousLayout {
Timer.scheduledTimer(timeInterval: 0.5,
target: self,
selector: #selector(UIView.exerciseAmbiguityInLayout),
userInfo: nil,
repeats: true)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment