@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "shirt04.jpg",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "shirt05.jpg",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "shirts.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -1,24 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" 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="14313.3.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="64U-lp-VJj">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.1"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<!--CODER SWAG-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
<viewController id="BYZ-38-t0r" customClass="CategoriesVC" customModule="CoderSwag" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="603"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="SHOP BY CATEGORY" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="x2J-vs-iQF">
<rect key="frame" x="16" y="30" width="116.5" height="16.5"/>
<fontDescription key="fontDescription" name="Avenir-Book" family="Avenir" pointSize="12"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="QFJ-Q8-VPy">
<rect key="frame" x="0.0" y="56.5" width="375" height="546.5"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" rowHeight="150" id="mtS-Oq-crz" customClass="CategoryCell" customModule="CoderSwag" customModuleProvider="target">
<rect key="frame" x="0.0" y="28" width="375" height="150"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="mtS-Oq-crz" id="eAC-ud-UMI">
<rect key="frame" x="0.0" y="0.0" width="375" height="149.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="hoodies" translatesAutoresizingMaskIntoConstraints="NO" id="L12-3o-M5P">
<rect key="frame" x="0.0" y="0.0" width="375" height="149.5"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="HOODIES" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1yU-ES-IeZ">
<rect key="frame" x="69.5" y="48.5" width="236" height="53"/>
<constraints>
<constraint firstAttribute="width" constant="236" id="npf-ED-1vq"/>
<constraint firstAttribute="height" constant="53" id="yCk-CT-dmU"/>
</constraints>
<fontDescription key="fontDescription" name="Avenir-Heavy" family="Avenir" pointSize="20"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="L12-3o-M5P" secondAttribute="bottom" id="8kx-zc-OBS"/>
<constraint firstItem="L12-3o-M5P" firstAttribute="leading" secondItem="eAC-ud-UMI" secondAttribute="leading" id="JGr-K4-MgD"/>
<constraint firstItem="1yU-ES-IeZ" firstAttribute="centerX" secondItem="eAC-ud-UMI" secondAttribute="centerX" id="Kdx-HO-n80"/>
<constraint firstItem="L12-3o-M5P" firstAttribute="top" secondItem="eAC-ud-UMI" secondAttribute="top" id="O5U-7P-ZHm"/>
<constraint firstItem="1yU-ES-IeZ" firstAttribute="centerY" secondItem="eAC-ud-UMI" secondAttribute="centerY" id="v57-VT-uiY"/>
<constraint firstAttribute="trailing" secondItem="L12-3o-M5P" secondAttribute="trailing" id="yg2-Jy-cfN"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="categoryImage" destination="L12-3o-M5P" id="K7Z-X7-bQp"/>
<outlet property="titleLabel" destination="1yU-ES-IeZ" id="Ufd-Ko-fLU"/>
</connections>
</tableViewCell>
</prototypes>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="QFJ-Q8-VPy" secondAttribute="bottom" id="6IQ-ar-rAA"/>
<constraint firstItem="x2J-vs-iQF" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="30" id="7na-aW-sBa"/>
<constraint firstItem="QFJ-Q8-VPy" firstAttribute="top" secondItem="x2J-vs-iQF" secondAttribute="bottom" constant="10" id="NeH-Ak-u8K"/>
<constraint firstItem="QFJ-Q8-VPy" firstAttribute="trailing" secondItem="6Tk-OE-BBY" secondAttribute="trailing" id="PAQ-Wl-g9P"/>
<constraint firstItem="QFJ-Q8-VPy" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="f2e-OU-xhs"/>
<constraint firstItem="x2J-vs-iQF" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="16" id="jud-CH-See"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<navigationItem key="navigationItem" title="CODER SWAG" id="JuY-xy-jWK"/>
<connections>
<outlet property="categoryTable" destination="QFJ-Q8-VPy" id="mhg-iv-Joq"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1029.5999999999999" y="766.86656671664173"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="Og4-xF-ldY">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="64U-lp-VJj" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" translucent="NO" id="hsS-oC-gql">
<rect key="frame" x="0.0" y="20" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="barTintColor" red="0.3411764705882353" green="0.15294117647058825" blue="0.15686274509803921" alpha="0.69999999999999996" colorSpace="custom" customColorSpace="sRGB"/>
<textAttributes key="titleTextAttributes">
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</textAttributes>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="W3h-2r-per"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="GC6-D7-2Uu" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="133.59999999999999" y="766.86656671664173"/>
</scene>
</scenes>
<resources>
<image name="hoodies" width="1024" height="703"/>
</resources>
</document>
@@ -8,11 +8,13 @@
import UIKit

class ViewController: UIViewController {
class CategoriesVC: UIViewController {

@IBOutlet weak var categoryTable: UITableView!

override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.

}


@@ -0,0 +1,27 @@
//
// CategoryCell.swift
// CoderSwag
//
// Created by Ryan Morrison on 25/08/2018.
// Copyright © 2018 Ryan Morrison. All rights reserved.
//
import UIKit

class CategoryCell: UITableViewCell {

@IBOutlet weak var categoryImage: UIImageView!
@IBOutlet weak var titleLabel: UILabel!

override func awakeFromNib() {
super.awakeFromNib()

}

override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)

// Configure the view for the selected state
}

}