Skip to content

Commit ce31779

Browse files
author
Luc Dion
committed
Complete the PR
1 parent bff5cc9 commit ce31779

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Example/PinLayoutSample.xcodeproj/project.pbxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
DF4C1AAA205AF10900DED50B /* RoundedButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AA7205AF10900DED50B /* RoundedButton.swift */; };
5050
DF4C1AAE205AF78A00DED50B /* SafeAreaCornersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AAC205AF78A00DED50B /* SafeAreaCornersViewController.swift */; };
5151
DF4C1AAF205AF78A00DED50B /* SafeAreaCornersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF4C1AAD205AF78A00DED50B /* SafeAreaCornersView.swift */; };
52-
DF9E25B320DE645B0086EA0D /* UnitTestsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF9E25AC20DE645B0086EA0D /* UnitTestsViewController.swift */; };
53-
DF9E25B420DE645B0086EA0D /* UnitTestsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF9E25AD20DE645B0086EA0D /* UnitTestsView.swift */; };
5452
DFEAF74A20C9648A00E33147 /* WrapContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFEAF74920C9648A00E33147 /* WrapContentView.swift */; };
5553
DFEAF74C20C9649F00E33147 /* WrapContentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFEAF74B20C9649F00E33147 /* WrapContentViewController.swift */; };
5654
/* End PBXBuildFile section */

Example/PinLayoutSample/UI/Menu/MenuViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ enum PageType: Int {
5656
var viewController: UIViewController {
5757
switch self {
5858
case .intro:
59-
return UnitTestsViewController(pageType: self)
59+
return IntroViewController(pageType: self)
6060
case .adjustToContainer:
6161
return AdjustToContainerViewController(pageType: self)
6262
case .tableView:
@@ -108,7 +108,7 @@ class MenuViewController: UIViewController {
108108

109109
override func viewDidAppear(_ animated: Bool) {
110110
super.viewDidAppear(true)
111-
didSelect(pageType: .intro)
111+
// didSelect(pageType: .safeArea)
112112
}
113113
}
114114

Sources/PinLayout+Size.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ extension PinLayout {
255255
warnWontBeApplied("the aspectRatio (\(ratio)) must be greater than zero.", context)
256256
return self
257257
} else if type.requiresSizeCalculable, !(view is SizeCalculable) {
258-
// Add unit test for this warning
259258
warnWontBeApplied("PinLayout cannot comptute this view's size. This type of views doesn't conform to the protocol SizeCalculable.", context)
260259
return self
261260
}

0 commit comments

Comments
 (0)