//
//  Common.swift
//  AutoLayout
//
//  Created by Marc Baldwin on 11/03/2015.
//  Copyright (c) 2015 Marc Baldwin. All rights reserved.
//

import UIKit

public struct Views {
    let views: [UIView]

    init(_ views: [UIView]) {
        self.views = views
    }
}

public class Builder {
    var constraints = [NSLayoutConstraint]()

    init() {}
}

public extension Builder {

    public func activateConstraints(active: Bool) {
        for constraint in constraints {
            constraint.active = active
        }
    }
}

public func += (lhs: Builder, rhs: [NSLayoutConstraint]) {
    lhs.constraints += rhs
}
//
//  Common.swift
//  AutoLayout
//
//  Created by Marc Baldwin on 11/03/2015.
//  Copyright (c) 2015 Marc Baldwin. All rights reserved.
//

import UIKit

public struct Views {
    let views: [UIView]

    init(_ views: [UIView]) {
        self.views = views
    }
}

public class Builder {
    var constraints = [NSLayoutConstraint]()
}

public extension Builder {

    public func activateConstraints(active: Bool) {
        for constraint in constraints {
            constraint.active = active
        }
    }
}

public func += (lhs: Builder, rhs: [NSLayoutConstraint]) {
    lhs.constraints += rhs
}
--- 
+++ 
@@ -18,6 +18,8 @@
 
 public class Builder {
     var constraints = [NSLayoutConstraint]()
+
+    init() {}
 }
 
 public extension Builder {
Add default init to Builder
