Skip to content

Instantly share code, notes, and snippets.

View EricAppel's full-sized avatar

EricAppel

  • Disney Streaming Services
View GitHub Profile
extension UIView {
func addSubview(_ child: UIView, constraints: [NSLayoutConstraint]) {
addSubview(child)
child.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate(constraints)
}
func addSubviewPinned(_ child: UIView) {
addSubview(child, constraints: [
child.topAnchor.constraint(equalTo: self.topAnchor),

Keybase proof

I hereby claim:

  • I am EricAppel on github.
  • I am ericappel (https://keybase.io/ericappel) on keybase.
  • I have a public key whose fingerprint is 7A57 7435 B926 7E4E 7132 60C1 1D5C B9B6 C654 8312

To claim this, I am signing this object: