Skip to content

Commit 86c8917

Browse files
committed
Update stack view axis in viewDidLoad
1 parent ea0f068 commit 86c8917

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Container/Container-SB/Container/Base.lproj/Main.storyboard

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
</connections>
3939
</containerView>
4040
</subviews>
41-
<variation key="heightClass=compact" axis="horizontal"/>
4241
</stackView>
4342
</subviews>
4443
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>

Container/Container-SB/Container/MasterViewController.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class MasterViewController: UIViewController {
3939
fileprivate var locationTableViewController: LocationTableViewController?
4040
fileprivate var mapViewController: MapViewController?
4141

42-
// override func viewDidLoad() {
43-
// super.viewDidLoad()
44-
//
42+
override func viewDidLoad() {
43+
super.viewDidLoad()
44+
4545
// guard let locationController = childViewControllers.first as? LocationTableViewController else {
4646
// fatalError("Check storyboard for missing LocationTableViewController")
4747
// }
@@ -53,7 +53,9 @@ class MasterViewController: UIViewController {
5353
// locationTableViewController = locationController
5454
// mapViewController = mapController
5555
// locationController.delegate = self
56-
// }
56+
57+
topStackView.axis = axisForSize(view.bounds.size)
58+
}
5759

5860
// Alternative to wiring up the interface in viewDidLoad (above) is to
5961
// use prepare(for segue:sender:) which is still called for

0 commit comments

Comments
 (0)