Last active
November 5, 2017 15:34
-
-
Save GenoZhou/01f789249c48495cd9eda07212007f90 to your computer and use it in GitHub Desktop.
Swift 4 UIView extensions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIView { | |
public func addSubviews(_ subviews: [UIView], tAMIC: Bool = false) { | |
for subview in subviews { | |
addSubview(subview) | |
subview.translatesAutoresizingMaskIntoConstraints = false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment