Skip to content

Commit 91df3ed

Browse files
author
Luc Dion
committed
Add unit tests
1 parent e0b3ca3 commit 91df3ed

26 files changed

+230
-129
lines changed

Example/PinLayoutSample.xcodeproj/project.pbxproj

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@
4949
DF4C1AA4205AEDFC00DED50B /* SafeAreaView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AA0205AEDFC00DED50B /* SafeAreaView.swift */; };
5050
DF4C1AA5205AEDFC00DED50B /* SafeAreaViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AA1205AEDFC00DED50B /* SafeAreaViewController.swift */; };
5151
DF4C1AAA205AF10900DED50B /* RoundedButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AA7205AF10900DED50B /* RoundedButton.swift */; };
52-
DF4C1AAE205AF78A00DED50B /* SafeAreaCornersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AAC205AF78A00DED50B /* SafeAreaCornersViewController.swift */; };
53-
DF4C1AAF205AF78A00DED50B /* SafeAreaCornersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AAD205AF78A00DED50B /* SafeAreaCornersView.swift */; };
52+
DF4C1AAE205AF78A00DED50B /* SafeAreaAndMarginsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AAC205AF78A00DED50B /* SafeAreaAndMarginsViewController.swift */; };
53+
DF4C1AAF205AF78A00DED50B /* SafeAreaAndMarginsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AAD205AF78A00DED50B /* SafeAreaAndMarginsView.swift */; };
5454
DFBCAEFB213012930025F7BF /* MethodReadableInsetsGroupHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFBCAEF9213012930025F7BF /* MethodReadableInsetsGroupHeader.swift */; };
5555
DFBCAEFC213012930025F7BF /* MethodReadableInsetsCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFBCAEFA213012930025F7BF /* MethodReadableInsetsCell.swift */; };
56+
DFBCAEFE2130146C0025F7BF /* AreaView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFBCAEFD2130146C0025F7BF /* AreaView.swift */; };
5657
DFD27841211B1A710056BD93 /* UINavigationController+Orientation.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFD27840211B1A700056BD93 /* UINavigationController+Orientation.swift */; };
5758
DFD27848211B1D090056BD93 /* UITabBarController+Orientation.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFD27847211B1D090056BD93 /* UITabBarController+Orientation.swift */; };
5859
DFD31BA0212EE4F200566CA4 /* TableViewReadableContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFD31B9E212EE4F100566CA4 /* TableViewReadableContentView.swift */; };
@@ -187,10 +188,11 @@
187188
DF4C1AA0205AEDFC00DED50B /* SafeAreaView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SafeAreaView.swift; sourceTree = "<group>"; };
188189
DF4C1AA1205AEDFC00DED50B /* SafeAreaViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SafeAreaViewController.swift; sourceTree = "<group>"; };
189190
DF4C1AA7205AF10900DED50B /* RoundedButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RoundedButton.swift; sourceTree = "<group>"; };
190-
DF4C1AAC205AF78A00DED50B /* SafeAreaCornersViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SafeAreaCornersViewController.swift; sourceTree = "<group>"; };
191-
DF4C1AAD205AF78A00DED50B /* SafeAreaCornersView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SafeAreaCornersView.swift; sourceTree = "<group>"; };
191+
DF4C1AAC205AF78A00DED50B /* SafeAreaAndMarginsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SafeAreaAndMarginsViewController.swift; sourceTree = "<group>"; };
192+
DF4C1AAD205AF78A00DED50B /* SafeAreaAndMarginsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SafeAreaAndMarginsView.swift; sourceTree = "<group>"; };
192193
DFBCAEF9213012930025F7BF /* MethodReadableInsetsGroupHeader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MethodReadableInsetsGroupHeader.swift; sourceTree = "<group>"; };
193194
DFBCAEFA213012930025F7BF /* MethodReadableInsetsCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MethodReadableInsetsCell.swift; sourceTree = "<group>"; };
195+
DFBCAEFD2130146C0025F7BF /* AreaView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AreaView.swift; sourceTree = "<group>"; };
194196
DFD27840211B1A700056BD93 /* UINavigationController+Orientation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UINavigationController+Orientation.swift"; sourceTree = "<group>"; };
195197
DFD27847211B1D090056BD93 /* UITabBarController+Orientation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UITabBarController+Orientation.swift"; sourceTree = "<group>"; };
196198
DFD31B9E212EE4F100566CA4 /* TableViewReadableContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableViewReadableContentView.swift; sourceTree = "<group>"; };
@@ -269,7 +271,7 @@
269271
2439CC631E66606D003326FB /* RelativeView */,
270272
2439CC5F1E665F66003326FB /* MultiRelativeView */,
271273
2497CFEA1EF40B8100DFD13B /* Form */,
272-
DFD31B9D212EE4D600566CA4 /* ReadableMargins */,
274+
DFD31B9D212EE4D600566CA4 /* TableViewReadableContent */,
273275
24D18D181F3DECD6008129EF /* IntroRTL */,
274276
2416376F1F8E4BC200EE703A /* IntroObjectiveC */,
275277
24CD1E8D1F8E4B0A00C3A54D /* PinLayoutSample-Bridging-Header.h */,
@@ -446,15 +448,16 @@
446448
DF4C1AAB205AF10C00DED50B /* Subviews */,
447449
DF4C1AA0205AEDFC00DED50B /* SafeAreaView.swift */,
448450
DF4C1AA1205AEDFC00DED50B /* SafeAreaViewController.swift */,
449-
DF4C1AAD205AF78A00DED50B /* SafeAreaCornersView.swift */,
450-
DF4C1AAC205AF78A00DED50B /* SafeAreaCornersViewController.swift */,
451+
DF4C1AAD205AF78A00DED50B /* SafeAreaAndMarginsView.swift */,
452+
DF4C1AAC205AF78A00DED50B /* SafeAreaAndMarginsViewController.swift */,
451453
);
452454
path = SafeArea;
453455
sourceTree = "<group>";
454456
};
455457
DF4C1AAB205AF10C00DED50B /* Subviews */ = {
456458
isa = PBXGroup;
457459
children = (
460+
DFBCAEFD2130146C0025F7BF /* AreaView.swift */,
458461
DF4C1AA7205AF10900DED50B /* RoundedButton.swift */,
459462
);
460463
path = Subviews;
@@ -478,14 +481,14 @@
478481
path = Cells;
479482
sourceTree = "<group>";
480483
};
481-
DFD31B9D212EE4D600566CA4 /* ReadableMargins */ = {
484+
DFD31B9D212EE4D600566CA4 /* TableViewReadableContent */ = {
482485
isa = PBXGroup;
483486
children = (
484487
DFBCAEF82130127F0025F7BF /* Cells */,
485488
DFD31B9E212EE4F100566CA4 /* TableViewReadableContentView.swift */,
486489
DFD31B9F212EE4F200566CA4 /* TableViewReadableContentViewController.swift */,
487490
);
488-
path = ReadableMargins;
491+
path = TableViewReadableContent;
489492
sourceTree = "<group>";
490493
};
491494
DFEAF71520C840F300E33147 /* WrapContent */ = {
@@ -689,7 +692,7 @@
689692
isa = PBXSourcesBuildPhase;
690693
buildActionMask = 2147483647;
691694
files = (
692-
DF4C1AAF205AF78A00DED50B /* SafeAreaCornersView.swift in Sources */,
695+
DF4C1AAF205AF78A00DED50B /* SafeAreaAndMarginsView.swift in Sources */,
693696
24F246141FA8D57100B6332E /* UIImageView+Download.swift in Sources */,
694697
DFBCAEFC213012930025F7BF /* MethodReadableInsetsCell.swift in Sources */,
695698
24DA374B1EF7F90600D1AB2F /* BaseFormView.swift in Sources */,
@@ -702,9 +705,10 @@
702705
24D18D1E1F3DED0D008129EF /* IntroRTLViewController.swift in Sources */,
703706
DFEAF74C20C9649F00E33147 /* WrapContentViewController.swift in Sources */,
704707
24F246121FA8D4D100B6332E /* HouseCell.swift in Sources */,
705-
DF4C1AAE205AF78A00DED50B /* SafeAreaCornersViewController.swift in Sources */,
708+
DF4C1AAE205AF78A00DED50B /* SafeAreaAndMarginsViewController.swift in Sources */,
706709
24A9C2031EF16A3E00F2CF64 /* AutoAdjustingSizeView.swift in Sources */,
707710
DFD27848211B1D090056BD93 /* UITabBarController+Orientation.swift in Sources */,
711+
DFBCAEFE2130146C0025F7BF /* AreaView.swift in Sources */,
708712
24D18D1D1F3DED0D008129EF /* IntroRTLView.swift in Sources */,
709713
DF4C1AAA205AF10900DED50B /* RoundedButton.swift in Sources */,
710714
2439CC351E665BF6003326FB /* MenuView.swift in Sources */,

Example/PinLayoutSample/UI/Examples/AdjustToContainer/AdjustToContainerViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AdjustToContainerViewController: UIViewController {
2727
init(pageType: PageType) {
2828
super.init(nibName: nil, bundle: nil)
2929

30-
title = pageType.text
30+
title = pageType.title
3131
}
3232

3333
required init?(coder aDecoder: NSCoder) {

Example/PinLayoutSample/UI/Examples/Animations/AnimationsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AnimationsViewController: UIViewController {
2727
init(pageType: PageType) {
2828
super.init(nibName: nil, bundle: nil)
2929

30-
title = pageType.text
30+
title = pageType.title
3131
}
3232

3333
required init?(coder aDecoder: NSCoder) {

Example/PinLayoutSample/UI/Examples/AutoAdjustingSize/AutoAdjustingSizeViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AutoAdjustingSizeViewController: UIViewController {
2727
init(pageType: PageType) {
2828
super.init(nibName: nil, bundle: nil)
2929

30-
title = pageType.text
30+
title = pageType.title
3131
}
3232

3333
required init?(coder aDecoder: NSCoder) {

Example/PinLayoutSample/UI/Examples/CollectionViewExample/CollectionViewExampleViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CollectionViewExampleViewController: UIViewController {
2929
init(pageType: PageType) {
3030
super.init(nibName: nil, bundle: nil)
3131

32-
title = pageType.text
32+
title = pageType.title
3333

3434
// This property is used only on iOS 7/8/9/10. See https://developer.apple.com/documentation/uikit/uiviewcontroller/1621372-automaticallyadjustsscrollviewin
3535
automaticallyAdjustsScrollViewInsets = false

Example/PinLayoutSample/UI/Examples/Form/FormViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FormViewController: UIViewController {
2727
init(pageType: PageType) {
2828
super.init(nibName: nil, bundle: nil)
2929

30-
title = pageType.text
30+
title = pageType.title
3131
}
3232

3333
required init?(coder aDecoder: NSCoder) {

Example/PinLayoutSample/UI/Examples/Intro/IntroViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class IntroViewController: UIViewController {
2727
init(pageType: PageType) {
2828
super.init(nibName: nil, bundle: nil)
2929

30-
title = pageType.text
30+
title = pageType.title
3131
}
3232

3333
required init?(coder aDecoder: NSCoder) {

Example/PinLayoutSample/UI/Examples/IntroRTL/IntroRTLViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class IntroRTLViewController: UIViewController {
2727
init(pageType: PageType) {
2828
super.init(nibName: nil, bundle: nil)
2929

30-
title = pageType.text
30+
title = pageType.title
3131
}
3232

3333
required init?(coder aDecoder: NSCoder) {

Example/PinLayoutSample/UI/Examples/MultiRelativeView/MultiRelativeViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MultiRelativeViewController: UIViewController {
2727
init(pageType: PageType) {
2828
super.init(nibName: nil, bundle: nil)
2929

30-
title = pageType.text
30+
title = pageType.title
3131
}
3232

3333
required init?(coder aDecoder: NSCoder) {

Example/PinLayoutSample/UI/Examples/RelativeView/RelativeViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RelativeViewController: UIViewController {
2727
init(pageType: PageType) {
2828
super.init(nibName: nil, bundle: nil)
2929

30-
title = pageType.text
30+
title = pageType.title
3131
}
3232

3333
required init?(coder aDecoder: NSCoder) {

0 commit comments

Comments
 (0)