Skip to content

Instantly share code, notes, and snippets.

Avatar
🌶️
Flying

Haiyan Ma SwiftTsubame

🌶️
Flying
  • Barcelona
View GitHub Profile
View UIViewLayoutAnchors.swift
// 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 {
You can’t perform that action at this time.