Edge.swift 581 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
//
//  Edge.swift
//  Cartography
//
//  Created by Robert Böhnke on 17/06/14.
//  Copyright (c) 2014 Robert Böhnke. All rights reserved.
//

#if os(iOS)
import UIKit
#else
import AppKit
#endif

public struct Edge : Property, RelativeEquality, RelativeInequality, Addition, Multiplication {
    public let attribute: NSLayoutAttribute
    public let context: Context
    public let view: View

    internal init(_ context: Context, _ view: View, _ attribute: NSLayoutAttribute) {
        self.attribute = attribute
        self.context = context
        self.view = view
    }
}