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
395 changes: 395 additions & 0 deletions Experiences/Experiences.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions Experiences/Experiences/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// AppDelegate.swift
// Experiences
//
// Created by Claudia Maciel on 7/17/20.
// Copyright © 2020 thecoderpilot. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {



func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

// MARK: UISceneSession Lifecycle

func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


}

Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"images" : [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions Experiences/Experiences/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
25 changes: 25 additions & 0 deletions Experiences/Experiences/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<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-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
150 changes: 150 additions & 0 deletions Experiences/Experiences/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="a5Q-0P-YF2">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Map View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="MapViewController" customModule="Experiences" 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"/>
<subviews>
<mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" mapType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="uV2-nG-wI4">
<rect key="frame" x="0.0" y="140" width="414" height="722"/>
</mapView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hpc-Jr-Mw2">
<rect key="frame" x="314" y="761.5" width="50" height="49"/>
<constraints>
<constraint firstAttribute="width" secondItem="hpc-Jr-Mw2" secondAttribute="height" multiplier="1:1" id="Cgw-Jg-2uE"/>
<constraint firstAttribute="width" constant="50" id="PuN-Hv-KaP"/>
</constraints>
<state key="normal" backgroundImage="square.and.pencil" catalog="system"/>
<connections>
<action selector="addExperienceButtonPressed:" destination="BYZ-38-t0r" eventType="touchUpInside" id="ieB-Dq-LIe"/>
<segue destination="5YC-gv-kkB" kind="show" identifier="addExperienceSegue" id="In3-Uk-pO3"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="hpc-Jr-Mw2" secondAttribute="bottom" constant="50" id="5QI-82-jz7"/>
<constraint firstItem="uV2-nG-wI4" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="Crl-FK-SIK"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="hpc-Jr-Mw2" secondAttribute="trailing" constant="50" id="lBU-zq-awj"/>
<constraint firstItem="uV2-nG-wI4" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" id="sLN-FA-OJ7"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="uV2-nG-wI4" secondAttribute="trailing" id="xML-nN-ohk"/>
<constraint firstItem="6Tk-OE-BBY" firstAttribute="bottom" secondItem="uV2-nG-wI4" secondAttribute="bottom" id="ydf-Nt-hDh"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<navigationItem key="navigationItem" id="CTw-vm-5zF"/>
<connections>
<outlet property="mapvView" destination="uV2-nG-wI4" id="5XS-W9-iAv"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1047.8260869565217" y="114.50892857142857"/>
</scene>
<!--New Experience-->
<scene sceneID="DXR-xi-ZGk">
<objects>
<viewController id="5YC-gv-kkB" customClass="ExperiencesScreenViewController" customModule="Experiences" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="KLE-nK-4Pa">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Title:" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Fdi-Ah-6Zp">
<rect key="frame" x="20" y="152" width="374" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="center" spacing="21" translatesAutoresizingMaskIntoConstraints="NO" id="7O7-VW-ef4">
<rect key="frame" x="20" y="206" width="374" height="179"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="hqB-YK-29b">
<rect key="frame" x="67" y="0.0" width="240" height="128"/>
<constraints>
<constraint firstAttribute="width" secondItem="hqB-YK-29b" secondAttribute="height" multiplier="15:8" id="wBl-wf-ctj"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="PsE-bN-7Pe">
<rect key="frame" x="126" y="149" width="122" height="30"/>
<state key="normal" title="Add Poster Image"/>
<connections>
<action selector="addImageButtonPressed:" destination="5YC-gv-kkB" eventType="touchUpInside" id="P2A-Ia-OSH"/>
</connections>
</button>
</subviews>
</stackView>
<button opaque="NO" contentMode="scaleToFill" verticalHuggingPriority="249" verticalCompressionResistancePriority="1000" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ZTh-BO-gZ6">
<rect key="frame" x="150" y="430" width="114" height="82"/>
<state key="normal" title="Record"/>
<state key="selected" title="Stop"/>
<connections>
<action selector="recordButtonPressed:" destination="5YC-gv-kkB" eventType="touchUpInside" id="jd7-2F-2PV"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="7O7-VW-ef4" firstAttribute="leading" secondItem="oYx-Ls-wwF" secondAttribute="leading" constant="20" id="ERr-ge-KjI"/>
<constraint firstItem="oYx-Ls-wwF" firstAttribute="bottom" relation="lessThanOrEqual" secondItem="ZTh-BO-gZ6" secondAttribute="bottom" constant="350" id="G2u-OL-7eq"/>
<constraint firstItem="oYx-Ls-wwF" firstAttribute="trailing" secondItem="7O7-VW-ef4" secondAttribute="trailing" constant="20" id="G8Z-ha-J9G"/>
<constraint firstItem="ZTh-BO-gZ6" firstAttribute="top" secondItem="7O7-VW-ef4" secondAttribute="bottom" constant="45" id="LTA-RU-enD"/>
<constraint firstItem="ZTh-BO-gZ6" firstAttribute="leading" secondItem="oYx-Ls-wwF" secondAttribute="leading" constant="150" id="bAZ-cf-E1K"/>
<constraint firstItem="7O7-VW-ef4" firstAttribute="top" secondItem="Fdi-Ah-6Zp" secondAttribute="bottom" constant="20" id="gDi-CU-Mib"/>
<constraint firstItem="oYx-Ls-wwF" firstAttribute="trailing" secondItem="Fdi-Ah-6Zp" secondAttribute="trailing" constant="20" id="nbL-uN-HA9"/>
<constraint firstItem="Fdi-Ah-6Zp" firstAttribute="leading" secondItem="oYx-Ls-wwF" secondAttribute="leading" constant="20" id="rV4-ea-h7v"/>
<constraint firstItem="Fdi-Ah-6Zp" firstAttribute="top" secondItem="oYx-Ls-wwF" secondAttribute="top" constant="12" id="v80-5c-ier"/>
<constraint firstItem="oYx-Ls-wwF" firstAttribute="trailing" secondItem="ZTh-BO-gZ6" secondAttribute="trailing" constant="150" id="zwT-xF-eGu"/>
</constraints>
<viewLayoutGuide key="safeArea" id="oYx-Ls-wwF"/>
</view>
<navigationItem key="navigationItem" title="New Experience" id="hZY-f0-H0T">
<barButtonItem key="rightBarButtonItem" systemItem="save" id="46H-a8-kPM">
<connections>
<action selector="saveButtonPressed:" destination="5YC-gv-kkB" id="aLv-aO-qZV"/>
</connections>
</barButtonItem>
</navigationItem>
<connections>
<outlet property="addPosterImageButton" destination="PsE-bN-7Pe" id="Sow-zw-z8V"/>
<outlet property="imageView" destination="hqB-YK-29b" id="Mzd-NN-3ad"/>
<outlet property="recordButton" destination="ZTh-BO-gZ6" id="cNh-O1-jwR"/>
<outlet property="saveButton" destination="46H-a8-kPM" id="dsj-US-cTe"/>
<outlet property="titleTextField" destination="Fdi-Ah-6Zp" id="Eth-MI-bi9"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="X4L-yO-mgh" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1905.7971014492755" y="114.50892857142857"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="yZW-Sz-z08">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="a5Q-0P-YF2" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" largeTitles="YES" id="OWr-DW-6YV">
<rect key="frame" x="0.0" y="44" width="414" height="96"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="XKD-Ji-6pf"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="R9b-eW-4qL" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="137.68115942028987" y="114.50892857142857"/>
</scene>
</scenes>
<resources>
<image name="square.and.pencil" catalog="system" width="128" height="118"/>
</resources>
</document>
Loading