Skip to content

Instantly share code, notes, and snippets.


Haiyan Ma SwiftTsubame

  • Barcelona
View GitHub Profile
View UIViewLayoutAnchors.swift
// Inspired by UIView Anchors from Brian Voong. Please check out his work at
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.