This file contains 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
// Inspired by UIView Anchors from Brian Voong. Please check out his work at https://github.com/bhlvoong/LBTAComponents | |
extension UIView { | |
public func addSubViewList(_ view: UIView...) { | |
view.forEach { self.addSubview($0) } | |
} | |
public func fillSuperview() { | |
translatesAutoresizingMaskIntoConstraints = false | |
if let superview = superview { |