Skip to content

Instantly share code, notes, and snippets.

import PackageDescription
import Foundation
import Swift
extension PackageDescription.Product {
public static func iOSApplication(
name: Swift.String,
targets: [Swift.String],
bundleIdentifier: Swift.String? = nil,
teamIdentifier: Swift.String? = nil,
@JoeMatt
JoeMatt / UIViewAutoLayoutAnchors.swift
Last active September 26, 2018 22:58 — forked from bizz84/UIViewAutoLayoutAnchors.swift
UIView extension for programmatic Auto Layout
import UIKit
extension UIView {
enum SALViewError : Error {
case noSuperview
}
func anchorAllEdgesToSuperview() throws {
guard let superview = superview else { throw SALViewError.noSuperview }