Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Hide the navigation bar on the status screen to give more vertical sp…
…ace (#137)

* Hide the navigation bar on the status screen to give more vertical space

* Updating the launch screen to match
  • Loading branch information
loudnate authored Aug 28, 2016
commit 5115dcaf41250afb84a80592cb2a81b416b85e92
4 changes: 2 additions & 2 deletions Loop/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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">
<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">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
Expand All @@ -8,7 +8,7 @@
<!--Navigation Controller-->
<scene sceneID="Ucb-uj-Fzl">
<objects>
<navigationController toolbarHidden="NO" id="c6k-8z-nla" sceneMemberID="viewController">
<navigationController navigationBarHidden="YES" toolbarHidden="NO" id="c6k-8z-nla" sceneMemberID="viewController">
<tabBarItem key="tabBarItem" enabled="NO" title="" id="nfG-Bf-TrT"/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="3rC-hS-Fnr">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
Expand Down
4 changes: 4 additions & 0 deletions Loop/View Controllers/StatusTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ final class StatusTableViewController: UITableViewController, UIGestureRecognize
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)

navigationController?.setNavigationBarHidden(true, animated: animated)
visible = true
}

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

if presentedViewController == nil {
navigationController?.setNavigationBarHidden(false, animated: animated)
}
visible = false
}

Expand Down