Commit 591f6b74 authored by tybrandt's avatar tybrandt
Browse files

Designed the Add Transaction view

parent c07b4142
......@@ -17,10 +17,10 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2cU-n9-zi7">
<rect key="frame" x="354" y="832" width="40" height="30"/>
<rect key="frame" x="349" y="824" width="45" height="30"/>
<color key="backgroundColor" systemColor="systemIndigoColor"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="40" id="WUH-OR-YHi"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="45" id="WUH-OR-YHi"/>
</constraints>
<state key="normal" title="ADD">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
......@@ -30,16 +30,16 @@
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="btA-ea-Nr1">
<rect key="frame" x="218" y="832" width="120" height="30"/>
<rect key="frame" x="216" y="824" width="125" height="30"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="120" id="NO9-5F-qbu"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="125" id="NO9-5F-qbu"/>
</constraints>
<state key="normal" title="TRANSACTIONS">
<color key="titleColor" systemColor="systemIndigoColor"/>
</state>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Total: $0.00" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bay-ph-RNu">
<rect key="frame" x="145" y="787" width="124" height="29"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Total: $0.00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bay-ph-RNu">
<rect key="frame" x="20" y="787" width="374" height="29"/>
<fontDescription key="fontDescription" type="system" pointSize="24"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
......@@ -49,9 +49,9 @@
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</tableView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sdJ-aN-yuT">
<rect key="frame" x="20" y="832" width="90" height="30"/>
<rect key="frame" x="20" y="824" width="95" height="30"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="90" id="itu-tv-Pnu"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="95" id="itu-tv-Pnu"/>
</constraints>
<state key="normal" title="CLEAR DATA">
<color key="titleColor" systemColor="systemRedColor"/>
......@@ -61,19 +61,19 @@
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="btA-ea-Nr1" firstAttribute="top" secondItem="bay-ph-RNu" secondAttribute="bottom" constant="16" id="1bW-YG-mo8"/>
<constraint firstItem="sdJ-aN-yuT" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" id="41j-1P-tu9"/>
<constraint firstItem="btA-ea-Nr1" firstAttribute="leading" secondItem="sdJ-aN-yuT" secondAttribute="trailing" constant="108" id="6RV-Rw-N9t"/>
<constraint firstItem="2cU-n9-zi7" firstAttribute="leading" secondItem="btA-ea-Nr1" secondAttribute="trailing" constant="16" id="7b7-a8-crX"/>
<constraint firstItem="btA-ea-Nr1" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="1" id="0RR-Mu-EZq"/>
<constraint firstItem="btA-ea-Nr1" firstAttribute="top" secondItem="bay-ph-RNu" secondAttribute="bottom" constant="8" id="1bW-YG-mo8"/>
<constraint firstItem="sdJ-aN-yuT" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" constant="-8" id="41j-1P-tu9"/>
<constraint firstItem="2cU-n9-zi7" firstAttribute="leading" secondItem="btA-ea-Nr1" secondAttribute="trailing" constant="8" id="7b7-a8-crX"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="2vd-QX-gXm" secondAttribute="trailing" constant="20" id="9Wz-nr-vt0"/>
<constraint firstItem="bay-ph-RNu" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="145" id="FtZ-8B-ytK"/>
<constraint firstItem="sdJ-aN-yuT" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="HgG-0X-48h"/>
<constraint firstItem="2cU-n9-zi7" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" id="JTb-vp-m5I"/>
<constraint firstItem="2cU-n9-zi7" firstAttribute="leading" secondItem="btA-ea-Nr1" secondAttribute="trailing" constant="16" id="XgE-uU-4Ul"/>
<constraint firstItem="2cU-n9-zi7" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" constant="-8" id="JTb-vp-m5I"/>
<constraint firstItem="2vd-QX-gXm" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="bU6-Gb-T0U"/>
<constraint firstItem="btA-ea-Nr1" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" id="vU1-n7-1dF"/>
<constraint firstItem="bay-ph-RNu" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="eYS-2I-ocH"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="bay-ph-RNu" secondAttribute="trailing" constant="20" id="ioR-8C-D0d"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="sdJ-aN-yuT" secondAttribute="trailing" constant="1" id="kgj-QI-DBw"/>
<constraint firstItem="btA-ea-Nr1" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" constant="-8" id="vU1-n7-1dF"/>
<constraint firstItem="bay-ph-RNu" firstAttribute="top" secondItem="2vd-QX-gXm" secondAttribute="bottom" constant="8" id="vne-tW-suH"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="bay-ph-RNu" secondAttribute="trailing" constant="145" id="x5B-DP-wPD"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="2cU-n9-zi7" secondAttribute="trailing" constant="20" id="xOX-Nf-atc"/>
<constraint firstItem="2vd-QX-gXm" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="zso-de-sey"/>
</constraints>
......@@ -95,29 +95,58 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="842"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="iZd-mL-2dr">
<rect key="frame" x="20" y="778" width="65" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="65" id="0Ki-la-lLT"/>
</constraints>
<state key="normal" title="CANCEL"/>
<connections>
<action selector="cancel:" destination="UPP-cu-IDS" eventType="touchUpInside" id="Cyy-HG-wkj"/>
</connections>
</button>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Category" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="4QK-O5-Idc">
<rect key="frame" x="20" y="76" width="374" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="words" returnKeyType="done" enablesReturnKeyAutomatically="YES"/>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Name" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="dLy-nz-OjX">
<rect key="frame" x="20" y="130" width="374" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="words" returnKeyType="done" enablesReturnKeyAutomatically="YES"/>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Cost" textAlignment="natural" minimumFontSize="17" clearButtonMode="always" translatesAutoresizingMaskIntoConstraints="NO" id="W5i-eB-EVL">
<rect key="frame" x="20" y="184" width="374" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="decimalPad" returnKeyType="done" enablesReturnKeyAutomatically="YES"/>
</textField>
</subviews>
<viewLayoutGuide key="safeArea" id="TXO-Pk-rXF"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="iZd-mL-2dr" firstAttribute="bottom" secondItem="TXO-Pk-rXF" secondAttribute="bottom" id="A3f-73-FSe"/>
<constraint firstItem="iZd-mL-2dr" firstAttribute="leading" secondItem="TXO-Pk-rXF" secondAttribute="leading" constant="20" id="V0a-Jn-e57"/>
<constraint firstItem="TXO-Pk-rXF" firstAttribute="trailing" secondItem="4QK-O5-Idc" secondAttribute="trailing" constant="20" id="4DW-cM-4c3"/>
<constraint firstItem="dLy-nz-OjX" firstAttribute="top" secondItem="4QK-O5-Idc" secondAttribute="bottom" constant="20" id="63e-xh-Szb"/>
<constraint firstItem="4QK-O5-Idc" firstAttribute="leading" secondItem="TXO-Pk-rXF" secondAttribute="leading" constant="20" id="EkR-1I-aRM"/>
<constraint firstItem="TXO-Pk-rXF" firstAttribute="trailing" secondItem="dLy-nz-OjX" secondAttribute="trailing" constant="20" id="KSI-ym-EHW"/>
<constraint firstItem="4QK-O5-Idc" firstAttribute="top" secondItem="TXO-Pk-rXF" secondAttribute="top" constant="20" id="RPK-NV-SdD"/>
<constraint firstItem="TXO-Pk-rXF" firstAttribute="trailing" secondItem="W5i-eB-EVL" secondAttribute="trailing" constant="20" id="X6q-qa-geP"/>
<constraint firstItem="W5i-eB-EVL" firstAttribute="top" secondItem="dLy-nz-OjX" secondAttribute="bottom" constant="20" id="xGE-LA-EGo"/>
<constraint firstItem="W5i-eB-EVL" firstAttribute="leading" secondItem="TXO-Pk-rXF" secondAttribute="leading" constant="20" id="zPl-up-8KC"/>
<constraint firstItem="dLy-nz-OjX" firstAttribute="leading" secondItem="TXO-Pk-rXF" secondAttribute="leading" constant="20" id="zak-gI-MO8"/>
</constraints>
</view>
<navigationItem key="navigationItem" title="Add Transaction" id="pN1-Go-uUE"/>
<navigationItem key="navigationItem" title="Add Transaction" id="pN1-Go-uUE">
<barButtonItem key="leftBarButtonItem" systemItem="cancel" id="sLR-og-eDa">
<connections>
<action selector="cancel:" destination="UPP-cu-IDS" id="y2P-nE-7Ec"/>
</connections>
</barButtonItem>
<barButtonItem key="rightBarButtonItem" systemItem="add" id="h88-4Q-MwN">
<connections>
<action selector="addTransactions:" destination="UPP-cu-IDS" id="X9P-Aw-J4z"/>
</connections>
</barButtonItem>
</navigationItem>
<connections>
<outlet property="addButton" destination="h88-4Q-MwN" id="jeg-Xt-kog"/>
<outlet property="categoryTextField" destination="4QK-O5-Idc" id="XfU-73-5KA"/>
<outlet property="costTextField" destination="W5i-eB-EVL" id="yYD-q9-Mel"/>
<outlet property="nameTextField" destination="dLy-nz-OjX" id="OPl-vs-gtU"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="jOc-cA-MFX" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="2865" y="165"/>
<point key="canvasLocation" x="2862.3188405797105" y="164.73214285714286"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="h9C-C0-k84">
......
......@@ -7,7 +7,7 @@
import UIKit
class CategoryViewController: UIViewController, UINavigationControllerDelegate {
class CategoryViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
......
Supports Markdown
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