forked from robb/Cartography
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathView.swift
31 lines (27 loc) · 799 Bytes
/
View.swift
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
26
27
28
29
30
31
//
// View.swift
// Cartography
//
// Created by Robert Böhnke on 26/06/14.
// Copyright (c) 2014 Robert Böhnke. All rights reserved.
//
import Foundation
#if os(iOS)
import UIKit
public typealias View = UIView
extension View {
public var car_translatesAutoresizingMaskIntoConstraints: Bool {
get { return translatesAutoresizingMaskIntoConstraints }
set { translatesAutoresizingMaskIntoConstraints = newValue }
}
}
#else
import AppKit
public typealias View = NSView
extension View {
public var car_translatesAutoresizingMaskIntoConstraints: Bool {
get { return translatesAutoresizingMaskIntoConstraints }
set { translatesAutoresizingMaskIntoConstraints = newValue }
}
}
#endif