Skip to content

Commit

Permalink
[#18] set tabbar
Browse files Browse the repository at this point in the history
  • Loading branch information
meenyweeny committed Apr 15, 2022
1 parent e48e4be commit 68a4f8b
Show file tree
Hide file tree
Showing 13 changed files with 537 additions and 20 deletions.
84 changes: 84 additions & 0 deletions assignment/assignment.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
986168C72805B29600A8859F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 986168C62805B29600A8859F /* ViewController.swift */; };
98967EF927FD5EB60031138C /* JoinNameViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98967EF827FD5EB60031138C /* JoinNameViewController.swift */; };
98967EFB27FD5ECE0031138C /* JoinPasswordViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98967EFA27FD5ECE0031138C /* JoinPasswordViewController.swift */; };
98FAA817280934B5000749D2 /* Home.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 98FAA816280934B5000749D2 /* Home.storyboard */; };
98FAA819280934C2000749D2 /* Search.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 98FAA818280934C2000749D2 /* Search.storyboard */; };
98FAA81B2809351D000749D2 /* Reels.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 98FAA81A2809351D000749D2 /* Reels.storyboard */; };
98FAA81D28093528000749D2 /* Shop.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 98FAA81C28093528000749D2 /* Shop.storyboard */; };
98FAA81F28093531000749D2 /* MyPage.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 98FAA81E28093531000749D2 /* MyPage.storyboard */; };
98FAA821280935F0000749D2 /* MainTabbarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98FAA820280935F0000749D2 /* MainTabbarController.swift */; };
98FAA82328093696000749D2 /* HomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98FAA82228093696000749D2 /* HomeViewController.swift */; };
98FAA825280936B0000749D2 /* SearchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98FAA824280936B0000749D2 /* SearchViewController.swift */; };
98FAA827280936BF000749D2 /* ReelsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98FAA826280936BF000749D2 /* ReelsViewController.swift */; };
98FAA829280936CC000749D2 /* ShopViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98FAA828280936CC000749D2 /* ShopViewController.swift */; };
98FAA82B280936E5000749D2 /* MyPageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98FAA82A280936E5000749D2 /* MyPageViewController.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -44,6 +55,17 @@
986168C62805B29600A8859F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
98967EF827FD5EB60031138C /* JoinNameViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JoinNameViewController.swift; sourceTree = "<group>"; };
98967EFA27FD5ECE0031138C /* JoinPasswordViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JoinPasswordViewController.swift; sourceTree = "<group>"; };
98FAA816280934B5000749D2 /* Home.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Home.storyboard; sourceTree = "<group>"; };
98FAA818280934C2000749D2 /* Search.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Search.storyboard; sourceTree = "<group>"; };
98FAA81A2809351D000749D2 /* Reels.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Reels.storyboard; sourceTree = "<group>"; };
98FAA81C28093528000749D2 /* Shop.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Shop.storyboard; sourceTree = "<group>"; };
98FAA81E28093531000749D2 /* MyPage.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = MyPage.storyboard; sourceTree = "<group>"; };
98FAA820280935F0000749D2 /* MainTabbarController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainTabbarController.swift; sourceTree = "<group>"; };
98FAA82228093696000749D2 /* HomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeViewController.swift; sourceTree = "<group>"; };
98FAA824280936B0000749D2 /* SearchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchViewController.swift; sourceTree = "<group>"; };
98FAA826280936BF000749D2 /* ReelsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReelsViewController.swift; sourceTree = "<group>"; };
98FAA828280936CC000749D2 /* ShopViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShopViewController.swift; sourceTree = "<group>"; };
98FAA82A280936E5000749D2 /* MyPageViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyPageViewController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -73,7 +95,13 @@
980D11D127FD56700009F772 /* Login */,
980D11D627FD56890009F772 /* Join */,
980D11DB27FD57C90009F772 /* Complete */,
98FAA8112809347B000749D2 /* Home */,
98FAA8122809347F000749D2 /* Search */,
98FAA81328093483000749D2 /* Reels */,
98FAA81428093489000749D2 /* Shop */,
98FAA8152809348D000749D2 /* MyPage */,
985946AA27FA7E5C00F7610D /* Main.storyboard */,
98FAA820280935F0000749D2 /* MainTabbarController.swift */,
);
path = Scene;
sourceTree = "<group>";
Expand Down Expand Up @@ -161,6 +189,51 @@
path = Resources;
sourceTree = "<group>";
};
98FAA8112809347B000749D2 /* Home */ = {
isa = PBXGroup;
children = (
98FAA816280934B5000749D2 /* Home.storyboard */,
98FAA82228093696000749D2 /* HomeViewController.swift */,
);
path = Home;
sourceTree = "<group>";
};
98FAA8122809347F000749D2 /* Search */ = {
isa = PBXGroup;
children = (
98FAA818280934C2000749D2 /* Search.storyboard */,
98FAA824280936B0000749D2 /* SearchViewController.swift */,
);
path = Search;
sourceTree = "<group>";
};
98FAA81328093483000749D2 /* Reels */ = {
isa = PBXGroup;
children = (
98FAA81A2809351D000749D2 /* Reels.storyboard */,
98FAA826280936BF000749D2 /* ReelsViewController.swift */,
);
path = Reels;
sourceTree = "<group>";
};
98FAA81428093489000749D2 /* Shop */ = {
isa = PBXGroup;
children = (
98FAA81C28093528000749D2 /* Shop.storyboard */,
98FAA828280936CC000749D2 /* ShopViewController.swift */,
);
path = Shop;
sourceTree = "<group>";
};
98FAA8152809348D000749D2 /* MyPage */ = {
isa = PBXGroup;
children = (
98FAA81E28093531000749D2 /* MyPage.storyboard */,
98FAA82A280936E5000749D2 /* MyPageViewController.swift */,
);
path = MyPage;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -219,11 +292,16 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
98FAA81D28093528000749D2 /* Shop.storyboard in Resources */,
98FAA817280934B5000749D2 /* Home.storyboard in Resources */,
980D11D327FD56770009F772 /* Login.storyboard in Resources */,
980D11DD27FD57D30009F772 /* Complete.storyboard in Resources */,
985946B127FA7E5C00F7610D /* LaunchScreen.storyboard in Resources */,
985946AE27FA7E5C00F7610D /* Assets.xcassets in Resources */,
98FAA81F28093531000749D2 /* MyPage.storyboard in Resources */,
985946AC27FA7E5C00F7610D /* Main.storyboard in Resources */,
98FAA819280934C2000749D2 /* Search.storyboard in Resources */,
98FAA81B2809351D000749D2 /* Reels.storyboard in Resources */,
980D11D827FD56910009F772 /* Join.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -237,14 +315,20 @@
files = (
980D11D527FD567D0009F772 /* LoginViewController.swift in Sources */,
986168C32805B28A00A8859F /* Image.swift in Sources */,
98FAA829280936CC000749D2 /* ShopViewController.swift in Sources */,
98967EFB27FD5ECE0031138C /* JoinPasswordViewController.swift in Sources */,
986168C72805B29600A8859F /* ViewController.swift in Sources */,
98FAA827280936BF000749D2 /* ReelsViewController.swift in Sources */,
985946A527FA7E5C00F7610D /* AppDelegate.swift in Sources */,
98FAA82B280936E5000749D2 /* MyPageViewController.swift in Sources */,
985946A727FA7E5C00F7610D /* SceneDelegate.swift in Sources */,
98FAA821280935F0000749D2 /* MainTabbarController.swift in Sources */,
986168C52805B29100A8859F /* Storyboard.swift in Sources */,
98FAA825280936B0000749D2 /* SearchViewController.swift in Sources */,
986168C12805B27D00A8859F /* Const.swift in Sources */,
980D11DF27FD57DA0009F772 /* CompleteViewController.swift in Sources */,
98967EF927FD5EB60031138C /* JoinNameViewController.swift in Sources */,
98FAA82328093696000749D2 /* HomeViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
89 changes: 69 additions & 20 deletions assignment/assignment/Scene/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,32 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="V1i-0I-sps">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<!--Main Tabbar Controller-->
<scene sceneID="7z7-b2-rsC">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="assignment" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
<tabBarController storyboardIdentifier="MainTabbarController" automaticallyAdjustsScrollViewInsets="NO" id="V1i-0I-sps" customClass="MainTabbarController" customModule="assignment" customModuleProvider="target" sceneMemberID="viewController">
<toolbarItems/>
<tabBar key="tabBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="NGS-A4-FgL">
<autoresizingMask key="autoresizingMask"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</tabBar>
<connections>
<segue destination="0x6-cM-8y1" kind="relationship" relationship="viewControllers" id="frR-40-Raz"/>
<segue destination="zmI-Ta-0Nx" kind="relationship" relationship="viewControllers" id="V7z-BB-N2f"/>
<segue destination="B1f-AW-xJK" kind="relationship" relationship="viewControllers" id="XOV-Oa-ZSF"/>
<segue destination="g7V-7d-ZU3" kind="relationship" relationship="viewControllers" id="IuQ-eb-7Ph"/>
<segue destination="tVf-7q-ErT" kind="relationship" relationship="viewControllers" id="dFN-P5-gLn"/>
</connections>
</tabBarController>
<placeholder placeholderIdentifier="IBFirstResponder" id="V0E-GR-iDw" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-22" y="81"/>
<point key="canvasLocation" x="-246" y="-436"/>
</scene>
<!--MyPage-->
<scene sceneID="77V-i3-bVZ">
<objects>
<viewControllerPlaceholder storyboardName="MyPage" id="tVf-7q-ErT" sceneMemberID="viewController">
<tabBarItem key="tabBarItem" title="Item" id="ygY-sF-Pad"/>
</viewControllerPlaceholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="jsV-ka-S3D" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="97" y="70"/>
</scene>
<!--Shop-->
<scene sceneID="VKy-Xd-fg5">
<objects>
<viewControllerPlaceholder storyboardName="Shop" id="g7V-7d-ZU3" sceneMemberID="viewController">
<tabBarItem key="tabBarItem" title="Item" id="2Tq-M6-W4e"/>
</viewControllerPlaceholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="eby-GN-LAe" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-72" y="70"/>
</scene>
<!--Home-->
<scene sceneID="BgG-ea-2YQ">
<objects>
<viewControllerPlaceholder storyboardName="Home" id="0x6-cM-8y1" sceneMemberID="viewController">
<tabBarItem key="tabBarItem" title="Item" id="mGT-Yk-5Si"/>
</viewControllerPlaceholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="gnC-EY-iD0" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-604" y="70"/>
</scene>
<!--Search-->
<scene sceneID="Lpe-8N-RnG">
<objects>
<viewControllerPlaceholder storyboardName="Search" id="zmI-Ta-0Nx" sceneMemberID="viewController">
<tabBarItem key="tabBarItem" title="Item" id="OpG-qh-JeX"/>
</viewControllerPlaceholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ept-lJ-ncQ" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-428" y="70"/>
</scene>
<!--Reels-->
<scene sceneID="obl-l7-TaX">
<objects>
<viewControllerPlaceholder storyboardName="Reels" id="B1f-AW-xJK" sceneMemberID="viewController">
<tabBarItem key="tabBarItem" title="Item" id="lbD-34-eS3"/>
</viewControllerPlaceholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="pP3-tI-Ee0" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-246" y="70"/>
</scene>
</scenes>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
51 changes: 51 additions & 0 deletions assignment/assignment/Scene/Home/Home.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="Jwe-6G-iMs">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Home View Controller-->
<scene sceneID="s0d-6b-0kx">
<objects>
<viewController storyboardIdentifier="HomeViewController" id="Y6W-OH-hqX" customClass="HomeViewController" customModule="assignment" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="5EZ-qb-Rvc">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="vDu-zF-Fre"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<tabBarItem key="tabBarItem" title="" image="icn_home" selectedImage="icn_home_selected" id="sD2-ht-DV1"/>
<navigationItem key="navigationItem" id="YaW-gb-QW1"/>
<simulatedTabBarMetrics key="simulatedBottomBarMetrics"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="886.95652173913049" y="80.357142857142847"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="F3e-Ps-X1T">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="Jwe-6G-iMs" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="cFR-84-nsH">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="Y6W-OH-hqX" kind="relationship" relationship="rootViewController" id="28H-90-wAc"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="R03-W7-fmc" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-23.188405797101453" y="80.357142857142847"/>
</scene>
</scenes>
<resources>
<image name="icn_home" width="24" height="24"/>
<image name="icn_home_selected" width="24" height="24"/>
</resources>
</document>
15 changes: 15 additions & 0 deletions assignment/assignment/Scene/Home/HomeViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// HomeViewController.swift
// assignment
//
// Created by 이경민 on 2022/04/15.
//

import UIKit

final class HomeViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()
}
}
Loading

0 comments on commit 68a4f8b

Please sign in to comment.