Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
36 changes: 20 additions & 16 deletions Funios Animals/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?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="21225" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21207"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
Expand All @@ -18,54 +19,55 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="20" translatesAutoresizingMaskIntoConstraints="NO" id="uoF-Zs-dIM">
<rect key="frame" x="60" y="358.5" width="294" height="179"/>
<rect key="frame" x="60" y="353.5" width="294" height="189.5"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="mbn-Ed-kTA">
<rect key="frame" x="0.0" y="0.0" width="294" height="54"/>
<rect key="frame" x="0.0" y="0.0" width="294" height="57.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Username" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4Qj-Pl-mUe">
<rect key="frame" x="0.0" y="0.0" width="294" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="294" height="20.5"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="username" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="AVg-B7-SpR">
<rect key="frame" x="0.0" y="20" width="294" height="34"/>
<rect key="frame" x="0.0" y="23.5" width="294" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" textContentType="name"/>
</textField>
</subviews>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" spacing="3" translatesAutoresizingMaskIntoConstraints="NO" id="BfD-ca-4zJ">
<rect key="frame" x="0.0" y="74" width="294" height="54"/>
<rect key="frame" x="0.0" y="77.5" width="294" height="57.5"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Password" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fjP-yN-T9v">
<rect key="frame" x="0.0" y="0.0" width="294" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="294" height="20.5"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleHeadline"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="password" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="BMv-GJ-Th3">
<rect key="frame" x="0.0" y="20" width="294" height="34"/>
<rect key="frame" x="0.0" y="23.5" width="294" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" secureTextEntry="YES" textContentType="password"/>
</textField>
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YLw-K5-ZSM">
<rect key="frame" x="0.0" y="148" width="294" height="31"/>
<rect key="frame" x="0.0" y="155" width="294" height="34.5"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="Sign In">
<color key="baseBackgroundColor" red="0.91764706370000004" green="0.50588238240000005" blue="0.52941179279999995" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</buttonConfiguration>
<connections>
<action selector="onLoginClick:" destination="BYZ-38-t0r" eventType="touchUpInside" id="7LH-wf-8iD"/>
<action selector="verifyMethod:" destination="BYZ-38-t0r" eventType="touchUpInside" id="j5r-T1-D13"/>
</connections>
</button>
</subviews>
</stackView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Sign In" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="y1m-qA-FYT">
<rect key="frame" x="60" y="261.5" width="294" height="37"/>
<rect key="frame" x="60" y="252.5" width="294" height="41"/>
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle0"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
Expand All @@ -84,6 +86,8 @@
</constraints>
</view>
<connections>
<outlet property="passwordTextField" destination="BMv-GJ-Th3" id="PNn-9E-PYl"/>
<outlet property="usernameTextField" destination="AVg-B7-SpR" id="aYN-lp-r4u"/>
<segue destination="5kg-Hg-L47" kind="presentation" identifier="segueToTabbar" modalPresentationStyle="fullScreen" id="IeA-hB-14P"/>
</connections>
</viewController>
Expand All @@ -100,7 +104,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="top" spacing="21" translatesAutoresizingMaskIntoConstraints="NO" id="D2N-xK-ai3">
<rect key="frame" x="157.5" y="412" width="99" height="72.5"/>
<rect key="frame" x="157.5" y="410" width="99" height="76"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hello, funios " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6Iz-7v-nnR">
<rect key="frame" x="0.0" y="0.0" width="99" height="20.5"/>
Expand All @@ -109,7 +113,7 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="iPy-jc-Mbd">
<rect key="frame" x="0.0" y="41.5" width="99" height="31"/>
<rect key="frame" x="0.0" y="41.5" width="99" height="34.5"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="Logout">
<color key="baseBackgroundColor" red="0.74901962280000001" green="0.2470588088" blue="0.15686275059999999" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
Expand Down Expand Up @@ -150,7 +154,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="o3r-VM-uOS">
<rect key="frame" x="0.0" y="88" width="414" height="725"/>
<rect key="frame" x="0.0" y="92" width="414" height="721"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</tableView>
</subviews>
Expand Down Expand Up @@ -199,7 +203,7 @@
<tabBarItem key="tabBarItem" title="Movies" image="film" catalog="system" selectedImage="film.fill" id="HhM-XA-YOS"/>
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" id="JQQ-Ey-eo9">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<rect key="frame" x="0.0" y="48" width="414" height="44"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
Expand All @@ -215,7 +219,7 @@
<resources>
<image name="film" catalog="system" width="128" height="93"/>
<image name="film.fill" catalog="system" width="128" height="93"/>
<image name="person" catalog="system" width="128" height="117"/>
<image name="person" catalog="system" width="128" height="121"/>
<image name="person.fill" catalog="system" width="128" height="120"/>
<namedColor name="AccentColor">
<color red="0.0" green="0.46000000000000002" blue="0.89000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
Expand Down
15 changes: 12 additions & 3 deletions Funios Animals/Login/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@
import UIKit

class LoginViewController: UIViewController {

@IBOutlet weak var usernameTextField: UITextField!
@IBOutlet weak var passwordTextField: UITextField!
let loggedInUserDefaultsKey = "com.funios.loggedInKey"

@IBAction func verifyMethod(_ sender: Any) {
let myUsername = "a"
let myPassword = "a"
}


override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}

@IBAction func onLoginClick(_ sender: Any) {
performSegue(withIdentifier: "segueToTabbar", sender: "funios")
}
Expand All @@ -27,7 +36,7 @@ class LoginViewController: UIViewController {
}
})
}

}
}
}
Expand Down