Skip to content

Commit 5115dca

Browse files
authored
Hide the navigation bar on the status screen to give more vertical space (#137)
* Hide the navigation bar on the status screen to give more vertical space * Updating the launch screen to match
1 parent ccf05cb commit 5115dca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Loop/Base.lproj/LaunchScreen.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="c6k-8z-nla">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15G31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="c6k-8z-nla">
33
<dependencies>
44
<deployment identifier="iOS"/>
55
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
@@ -8,7 +8,7 @@
88
<!--Navigation Controller-->
99
<scene sceneID="Ucb-uj-Fzl">
1010
<objects>
11-
<navigationController toolbarHidden="NO" id="c6k-8z-nla" sceneMemberID="viewController">
11+
<navigationController navigationBarHidden="YES" toolbarHidden="NO" id="c6k-8z-nla" sceneMemberID="viewController">
1212
<tabBarItem key="tabBarItem" enabled="NO" title="" id="nfG-Bf-TrT"/>
1313
<navigationBar key="navigationBar" contentMode="scaleToFill" id="3rC-hS-Fnr">
1414
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>

Loop/View Controllers/StatusTableViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ final class StatusTableViewController: UITableViewController, UIGestureRecognize
7171
override func viewWillAppear(animated: Bool) {
7272
super.viewWillAppear(animated)
7373

74+
navigationController?.setNavigationBarHidden(true, animated: animated)
7475
visible = true
7576
}
7677

@@ -83,6 +84,9 @@ final class StatusTableViewController: UITableViewController, UIGestureRecognize
8384
override func viewWillDisappear(animated: Bool) {
8485
super.viewWillDisappear(animated)
8586

87+
if presentedViewController == nil {
88+
navigationController?.setNavigationBarHidden(false, animated: animated)
89+
}
8690
visible = false
8791
}
8892

0 commit comments

Comments
 (0)