Commit d3a1ba49 by adamdahan Committed by Daniel Dahan

Fixing bottom nav

parent 3215a38a
......@@ -18,31 +18,5 @@ extension UIStoryboard {
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
lazy var videoViewController: VideoViewController = {
return UIStoryboard.viewController(identifier: "VideoViewController") as! VideoViewController
}()
lazy var audioViewController: AudioViewController = {
return UIStoryboard.viewController(identifier: "AudioViewController") as! AudioViewController
}()
lazy var photoViewController: PhotoViewController = {
return UIStoryboard.viewController(identifier: "PhotoViewController") as! PhotoViewController
}()
lazy var remindersViewController: RemindersViewController = {
return UIStoryboard.viewController(identifier: "RemindersViewController") as! RemindersViewController
}()
lazy var searchViewController: SearchViewController = {
return UIStoryboard.viewController(identifier: "SearchViewController") as! SearchViewController
}()
func applicationDidFinishLaunching(_ application: UIApplication) {
window = UIWindow(frame: UIScreen.main.bounds)
window!.rootViewController = AppBottomNavigationController(viewControllers: [PhotoViewController(), VideoViewController(), AudioViewController(), RemindersViewController(), SearchViewController()])
window!.makeKeyAndVisible()
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11201" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="DWT-A5-eEA">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11161"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Video View Controller-->
<!--Item-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController storyboardIdentifier="VideoViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="BYZ-38-t0r" customClass="VideoViewController" customModule="BottomNavigationController" customModuleProvider="target" sceneMemberID="viewController">
......@@ -19,11 +19,34 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<tabBarItem key="tabBarItem" title="Item" id="kjM-ON-xya"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1218" y="-959"/>
</scene>
<!--Audio View Controller-->
<!--App Bottom Navigation Controller-->
<scene sceneID="cmh-QT-qPa">
<objects>
<tabBarController id="DWT-A5-eEA" customClass="AppBottomNavigationController" customModule="BottomNavigationController" customModuleProvider="target" sceneMemberID="viewController">
<tabBar key="tabBar" contentMode="scaleToFill" id="cKS-B9-oMf">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</tabBar>
<connections>
<segue destination="BYZ-38-t0r" kind="relationship" relationship="viewControllers" id="iw4-T2-PaR"/>
<segue destination="pdq-VH-Zd8" kind="relationship" relationship="viewControllers" id="dJU-BB-byy"/>
<segue destination="mur-LI-Nz5" kind="relationship" relationship="viewControllers" id="CGo-4t-Q8A"/>
<segue destination="OeN-A7-5FM" kind="relationship" relationship="viewControllers" id="cBL-fo-UMJ"/>
<segue destination="W8C-ce-Cww" kind="relationship" relationship="viewControllers" id="7Ap-rB-atI"/>
</connections>
</tabBarController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dKB-Yc-ljD" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="300" y="-664"/>
</scene>
<!--Item-->
<scene sceneID="6CE-Ax-jpB">
<objects>
<viewController storyboardIdentifier="AudioViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="pdq-VH-Zd8" customClass="AudioViewController" customModule="BottomNavigationController" customModuleProvider="target" sceneMemberID="viewController">
......@@ -36,12 +59,13 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
<tabBarItem key="tabBarItem" title="Item" id="STt-n6-3n0"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="XI1-T3-Gjo" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="729" y="145"/>
<point key="canvasLocation" x="1217" y="-289"/>
</scene>
<!--Reminders Controller-->
<!--Item-->
<scene sceneID="Zhg-5m-84f">
<objects>
<viewController storyboardIdentifier="RemindersController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="mur-LI-Nz5" customClass="RemindersController" customModule="Material" sceneMemberID="viewController">
......@@ -54,12 +78,13 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
<tabBarItem key="tabBarItem" title="Item" id="DYI-dv-2fD"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="K9A-Dt-Rsf" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1494" y="154"/>
<point key="canvasLocation" x="1217" y="414"/>
</scene>
<!--Search View Controller-->
<!--Item-->
<scene sceneID="ZQj-ux-hv8">
<objects>
<viewController storyboardIdentifier="SearchViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="OeN-A7-5FM" customClass="SearchViewController" customModule="BottomNavigationController" customModuleProvider="target" sceneMemberID="viewController">
......@@ -72,12 +97,13 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
<tabBarItem key="tabBarItem" title="Item" id="YHC-RR-Wsc"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="HGN-cL-D2G" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2394" y="160"/>
<point key="canvasLocation" x="1217" y="-1636"/>
</scene>
<!--Photo View Controller-->
<!--Item-->
<scene sceneID="iE0-fd-klF">
<objects>
<viewController storyboardIdentifier="PhotoViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="W8C-ce-Cww" customClass="PhotoViewController" customModule="BottomNavigationController" customModuleProvider="target" sceneMemberID="viewController">
......@@ -90,10 +116,11 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
<tabBarItem key="tabBarItem" title="Item" id="4AZ-wr-K2G"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="y1l-TR-2xF" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="3194" y="160"/>
<point key="canvasLocation" x="1217" y="-2312"/>
</scene>
</scenes>
</document>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment