Skip to content

Instantly share code, notes, and snippets.

@artemnovichkov
Created December 15, 2016 05:25
Show Gist options
  • Save artemnovichkov/95bc79a3233514419002792da188bb36 to your computer and use it in GitHub Desktop.
Save artemnovichkov/95bc79a3233514419002792da188bb36 to your computer and use it in GitHub Desktop.
UIView with magic
import UIKit
extension UIView {
func вжух() {
setNeedsLayout()
layoutIfNeeded()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment