This file contains hidden or 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
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, |
This file contains hidden or 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
import UIKit | |
extension UIView { | |
enum SALViewError : Error { | |
case noSuperview | |
} | |
func anchorAllEdgesToSuperview() throws { | |
guard let superview = superview else { throw SALViewError.noSuperview } |