Skip to content

Commit 55258c6

Browse files
committed
Add deprecations
1 parent 3e64e0a commit 55258c6

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

Layoutless.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
EC2870F4201E455A00702624 /* LayoutNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC2870F3201E455A00702624 /* LayoutNode.swift */; };
1717
EC7AD57322A992C300643A24 /* UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC7AD57222A992C300643A24 /* UI.swift */; };
1818
EC7AD57422A992C300643A24 /* UI.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC7AD57222A992C300643A24 /* UI.swift */; };
19+
EC7AD57722A993A900643A24 /* Deprecations.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC7AD57622A993A900643A24 /* Deprecations.swift */; };
20+
EC7AD57822A993A900643A24 /* Deprecations.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC7AD57622A993A900643A24 /* Deprecations.swift */; };
1921
EC8287712099D56F00E371EC /* UIView+iOS10.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC8287702099D56F00E371EC /* UIView+iOS10.swift */; };
2022
EC8287722099D56F00E371EC /* UIView+iOS10.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC8287702099D56F00E371EC /* UIView+iOS10.swift */; };
2123
ECC45DDA20DE7C6A00E13399 /* Revertable.swift in Sources */ = {isa = PBXBuildFile; fileRef = ECC45DD920DE7C6A00E13399 /* Revertable.swift */; };
@@ -71,6 +73,7 @@
7173
EC2870F3201E455A00702624 /* LayoutNode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LayoutNode.swift; sourceTree = "<group>"; };
7274
EC7AD57222A992C300643A24 /* UI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UI.swift; sourceTree = "<group>"; };
7375
EC7AD57522A9934E00643A24 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
76+
EC7AD57622A993A900643A24 /* Deprecations.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Deprecations.swift; sourceTree = "<group>"; };
7477
EC8287702099D56F00E371EC /* UIView+iOS10.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+iOS10.swift"; sourceTree = "<group>"; };
7578
ECC45DD920DE7C6A00E13399 /* Revertable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Revertable.swift; sourceTree = "<group>"; };
7679
ECC45DDC20DE7CB300E13399 /* WindowTraitCollection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowTraitCollection.swift; sourceTree = "<group>"; };
@@ -182,6 +185,7 @@
182185
ECCF2D912024C03A008099DD /* UI.CollectionViewCell.swift */,
183186
ECCF2D8E2024C03A008099DD /* UI.ViewController.swift */,
184187
ECC45DDF20DE7F4D00E13399 /* UI.Window.swift */,
188+
EC7AD57622A993A900643A24 /* Deprecations.swift */,
185189
);
186190
path = Views;
187191
sourceTree = "<group>";
@@ -340,6 +344,7 @@
340344
ECE4C74B22A97041002FFC51 /* UI.Label.swift in Sources */,
341345
ECC45DDA20DE7C6A00E13399 /* Revertable.swift in Sources */,
342346
ECE4C74A22A97041002FFC51 /* UI.Control.swift in Sources */,
347+
EC7AD57722A993A900643A24 /* Deprecations.swift in Sources */,
343348
EC7AD57322A992C300643A24 /* UI.swift in Sources */,
344349
EC2870EC201E444700702624 /* Anchorable.swift in Sources */,
345350
ECE4C75122A97041002FFC51 /* UI.ViewController.swift in Sources */,
@@ -371,6 +376,7 @@
371376
ECE4C74122A97040002FFC51 /* UI.Label.swift in Sources */,
372377
ECCF2E1420274F82008099DD /* Layoutless.swift in Sources */,
373378
ECE4C74022A97040002FFC51 /* UI.Control.swift in Sources */,
379+
EC7AD57822A993A900643A24 /* Deprecations.swift in Sources */,
374380
EC7AD57422A992C300643A24 /* UI.swift in Sources */,
375381
ECC45DDB20DE7C6A00E13399 /* Revertable.swift in Sources */,
376382
ECCF2E1120274F82008099DD /* LayoutProtocol.swift in Sources */,

Sources/Views/Deprecations.swift

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
//
2+
// Deprecations.swift
3+
// Layoutless
4+
//
5+
// Created by Srdan Rasic on 06/06/2019.
6+
// Copyright © 2019 Declarative Hub. All rights reserved.
7+
//
8+
9+
import Foundation
10+
import UIKit
11+
12+
@available(*, deprecated, renamed: "UI.View")
13+
public typealias View = UI.View
14+
15+
@available(*, deprecated, renamed: "UI.Control")
16+
public typealias Control = UI.Control
17+
18+
@available(*, deprecated, renamed: "UI.Label")
19+
public typealias Label = UI.Label
20+
21+
@available(*, deprecated, renamed: "UI.Button")
22+
public typealias Button = UI.Button
23+
24+
@available(*, deprecated, renamed: "UI.TextField")
25+
public typealias TextField = UI.TextField
26+
27+
@available(*, deprecated, renamed: "UI.ImageView")
28+
public typealias ImageView = UI.ImageView
29+
30+
@available(*, deprecated, renamed: "UI.TableViewCell")
31+
public typealias TableViewCell = UI.TableViewCell
32+
33+
@available(*, deprecated, renamed: "UI.CollectionViewCell")
34+
public typealias CollectionViewCell = UI.CollectionViewCell
35+
36+
@available(*, deprecated, renamed: "UI.ViewController")
37+
public typealias ViewController = UI.ViewController
38+
39+
@available(*, deprecated, renamed: "UI.Window")
40+
public typealias Window = UI.Window

0 commit comments

Comments
 (0)