Browse Source

Button changes, text introduction, color adjustments, dark mode ground work

Hector Carrion 4 years ago
parent
commit
be5e060552
55 changed files with 163 additions and 46 deletions
  1. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/100.png
  2. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/1024.png
  3. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/114.png
  4. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/120.png
  5. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/128.png
  6. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/144.png
  7. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/152.png
  8. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/16.png
  9. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/167.png
  10. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/172.png
  11. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/180.png
  12. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/196.png
  13. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/20.png
  14. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/216.png
  15. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/256.png
  16. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/29.png
  17. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/32.png
  18. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/40.png
  19. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/48.png
  20. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/50.png
  21. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/512.png
  22. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/55.png
  23. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/57.png
  24. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/58.png
  25. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/60.png
  26. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/64.png
  27. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/72.png
  28. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/76.png
  29. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/80.png
  30. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/87.png
  31. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/88.png
  32. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-1024.png
  33. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-120(1)-1.png
  34. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-120(1).png
  35. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-152.png
  36. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-167.png
  37. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-180.png
  38. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-20.png
  39. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-29(1).png
  40. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-40(1).png
  41. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-40(2).png
  42. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-40.png
  43. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-58.png
  44. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-59.png
  45. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-60.png
  46. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-76(1).png
  47. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-80.png
  48. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-81.png
  49. BIN
      EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-87.png
  50. 21
    0
      EncuestaMarle/Assets.xcassets/Icon-rounded.imageset/Contents.json
  51. BIN
      EncuestaMarle/Assets.xcassets/Icon-rounded.imageset/Icon-rounded.png
  52. 76
    34
      EncuestaMarle/Base.lproj/Main.storyboard
  53. 30
    0
      EncuestaMarle/LaunchScreen.xib
  54. 32
    0
      EncuestaMarle/OnboardingViewController.swift
  55. 4
    12
      Tania.xcodeproj/project.pbxproj

BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/100.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/1024.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/114.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/120.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/128.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/144.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/152.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/16.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/167.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/172.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/180.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/196.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/20.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/216.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/256.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/29.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/32.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/40.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/48.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/50.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/512.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/55.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/57.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/58.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/60.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/64.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/72.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/76.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/80.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/87.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/88.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-1024.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-120(1)-1.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-120(1).png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-152.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-167.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-180.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-20.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-29(1).png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-40(1).png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-40(2).png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-40.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-58.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-59.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-60.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-76(1).png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-80.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-81.png View File


BIN
EncuestaMarle/Assets.xcassets/AppIcon.appiconset/Icon-87.png View File


+ 21
- 0
EncuestaMarle/Assets.xcassets/Icon-rounded.imageset/Contents.json View File

@@ -0,0 +1,21 @@
1
+{
2
+  "images" : [
3
+    {
4
+      "idiom" : "universal",
5
+      "filename" : "Icon-rounded.png",
6
+      "scale" : "1x"
7
+    },
8
+    {
9
+      "idiom" : "universal",
10
+      "scale" : "2x"
11
+    },
12
+    {
13
+      "idiom" : "universal",
14
+      "scale" : "3x"
15
+    }
16
+  ],
17
+  "info" : {
18
+    "version" : 1,
19
+    "author" : "xcode"
20
+  }
21
+}

BIN
EncuestaMarle/Assets.xcassets/Icon-rounded.imageset/Icon-rounded.png View File


+ 76
- 34
EncuestaMarle/Base.lproj/Main.storyboard View File

@@ -1,9 +1,9 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15400" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="VBd-I7-AF1">
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="VBd-I7-AF1">
3 3
     <device id="retina5_5" orientation="portrait" appearance="light"/>
4 4
     <dependencies>
5 5
         <deployment identifier="iOS"/>
6
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
6
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15510"/>
7 7
         <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8 8
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9 9
     </dependencies>
@@ -18,21 +18,32 @@
18 18
                         <subviews>
19 19
                             <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="X5i-Gf-gnI">
20 20
                                 <rect key="frame" x="35" y="285" width="344" height="59"/>
21
-                                <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
21
+                                <color key="backgroundColor" red="0.32369405029999998" green="0.51431828739999996" blue="0.92553383109999998" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
22 22
                                 <constraints>
23 23
                                     <constraint firstAttribute="height" constant="59" identifier="ANS1" id="jwc-vC-t0x"/>
24 24
                                 </constraints>
25 25
                                 <fontDescription key="fontDescription" type="system" weight="black" pointSize="26"/>
26 26
                                 <color key="tintColor" red="0.35331264140000002" green="0.40740802879999999" blue="0.96476000549999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
27 27
                                 <state key="normal" title="Answer Survey">
28
-                                    <color key="titleColor" red="0.35331264140000002" green="0.40740802879999999" blue="0.96476000549999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
28
+                                    <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
29 29
                                 </state>
30
+                                <userDefinedRuntimeAttributes>
31
+                                    <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
32
+                                        <real key="value" value="5"/>
33
+                                    </userDefinedRuntimeAttribute>
34
+                                    <userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
35
+                                        <real key="value" value="1"/>
36
+                                    </userDefinedRuntimeAttribute>
37
+                                    <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
38
+                                        <color key="value" red="0.32369405029999998" green="0.51431828739999996" blue="0.92553383109999998" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
39
+                                    </userDefinedRuntimeAttribute>
40
+                                </userDefinedRuntimeAttributes>
30 41
                                 <connections>
31 42
                                     <action selector="tomar_encuesta:" destination="BYZ-38-t0r" eventType="touchUpInside" id="f1H-vM-X8H"/>
32 43
                                 </connections>
33 44
                             </button>
34 45
                         </subviews>
35
-                        <color key="backgroundColor" red="0.35331264140000002" green="0.40740802879999999" blue="0.96476000549999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
46
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
36 47
                         <constraints>
37 48
                             <constraint firstItem="X5i-Gf-gnI" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="35" identifier="Ans2" id="FUW-5x-JJm"/>
38 49
                             <constraint firstItem="X5i-Gf-gnI" firstAttribute="top" secondItem="6Tk-OE-BBY" secondAttribute="top" constant="241" identifier="Ans3" id="Isl-Wl-ceq"/>
@@ -91,59 +102,89 @@
91 102
                         <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
92 103
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
93 104
                         <subviews>
94
-                            <containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="h4U-fy-FIW">
95
-                                <rect key="frame" x="20" y="49.666666666666686" width="374" height="629.33333333333326"/>
96
-                                <connections>
97
-                                    <segue destination="OQz-xT-dhH" kind="embed" id="TPl-T3-NpQ"/>
98
-                                </connections>
99
-                            </containerView>
100
-                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MARLE" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="oMK-W6-xSz">
101
-                                <rect key="frame" x="165" y="8" width="84" height="33.666666666666664"/>
102
-                                <fontDescription key="fontDescription" style="UICTFontTextStyleTitle1"/>
103
-                                <color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
104
-                                <nil key="highlightedColor"/>
105
-                            </label>
106 105
                             <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gGJ-33-J27">
107 106
                                 <rect key="frame" x="20" y="8" width="100" height="22"/>
108
-                                <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
107
+                                <color key="backgroundColor" red="0.32369405029999998" green="0.51431828739999996" blue="0.92553383109999998" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
109 108
                                 <constraints>
110 109
                                     <constraint firstAttribute="width" constant="100" identifier="Rec1" id="Txs-tV-5RB"/>
111 110
                                 </constraints>
112 111
                                 <fontDescription key="fontDescription" type="system" weight="black" pointSize="8"/>
113 112
                                 <state key="normal" title="Recover Account">
114
-                                    <color key="titleColor" red="0.35331264140000002" green="0.40740802879999999" blue="0.96476000549999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
113
+                                    <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
115 114
                                 </state>
115
+                                <userDefinedRuntimeAttributes>
116
+                                    <userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
117
+                                        <real key="value" value="1"/>
118
+                                    </userDefinedRuntimeAttribute>
119
+                                    <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
120
+                                        <real key="value" value="5"/>
121
+                                    </userDefinedRuntimeAttribute>
122
+                                    <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
123
+                                        <color key="value" red="0.32369405029999998" green="0.51431828739999996" blue="0.92553383109999998" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
124
+                                    </userDefinedRuntimeAttribute>
125
+                                </userDefinedRuntimeAttributes>
116 126
                                 <connections>
117 127
                                     <action selector="recover_account:" destination="w49-Mx-cg8" eventType="touchUpInside" id="aMh-PE-CkL"/>
118 128
                                 </connections>
119 129
                             </button>
120 130
                             <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nNl-6H-60E">
121 131
                                 <rect key="frame" x="150.66666666666666" y="693" width="112.99999999999997" height="30"/>
122
-                                <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
132
+                                <color key="backgroundColor" red="0.32369405029999998" green="0.51431828739999996" blue="0.92553383109999998" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
123 133
                                 <constraints>
124 134
                                     <constraint firstAttribute="width" constant="113" identifier="Join1" id="ofM-bD-SdS"/>
125 135
                                 </constraints>
126 136
                                 <fontDescription key="fontDescription" type="system" weight="black" pointSize="15"/>
127 137
                                 <state key="normal" title="Join Study">
128
-                                    <color key="titleColor" red="0.35331264140000002" green="0.40740802879999999" blue="0.96476000549999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
138
+                                    <color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
129 139
                                 </state>
140
+                                <userDefinedRuntimeAttributes>
141
+                                    <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
142
+                                        <real key="value" value="5"/>
143
+                                    </userDefinedRuntimeAttribute>
144
+                                    <userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
145
+                                        <real key="value" value="1"/>
146
+                                    </userDefinedRuntimeAttribute>
147
+                                    <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
148
+                                        <color key="value" red="0.32369405029999998" green="0.51431828739999996" blue="0.92553383109999998" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
149
+                                    </userDefinedRuntimeAttribute>
150
+                                </userDefinedRuntimeAttributes>
130 151
                                 <connections>
131 152
                                     <action selector="joinButtonTapped:" destination="w49-Mx-cg8" eventType="touchUpInside" id="rRA-lm-n6W"/>
132 153
                                 </connections>
133 154
                             </button>
155
+                            <textView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" fixedFrame="YES" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="Fb5-jH-gVK">
156
+                                <rect key="frame" x="20" y="217" width="374" height="185"/>
157
+                                <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
158
+                                <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
159
+                                <string key="text">To register a new account tap on Join Study bellow.
160
+
161
+To log-in to a previously registered account tap Recover Account above.</string>
162
+                                <color key="textColor" systemColor="labelColor" cocoaTouchSystemColor="darkTextColor"/>
163
+                                <fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
164
+                                <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
165
+                            </textView>
166
+                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" text="Welcome to Tania" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="gEj-a4-kWk">
167
+                                <rect key="frame" x="20" y="114" width="374" height="50"/>
168
+                                <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
169
+                                <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
170
+                                <color key="textColor" systemColor="labelColor" cocoaTouchSystemColor="darkTextColor"/>
171
+                                <fontDescription key="fontDescription" style="UICTFontTextStyleTitle0"/>
172
+                                <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
173
+                            </textView>
174
+                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" text="Momentary Assesment Made Simple" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="0BG-sB-Fdn">
175
+                                <rect key="frame" x="20" y="163" width="374" height="30"/>
176
+                                <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
177
+                                <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
178
+                                <color key="textColor" systemColor="labelColor" cocoaTouchSystemColor="darkTextColor"/>
179
+                                <fontDescription key="fontDescription" style="UICTFontTextStyleCaption1"/>
180
+                                <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
181
+                            </textView>
134 182
                         </subviews>
135
-                        <color key="backgroundColor" red="0.35331264140000002" green="0.40740802879999999" blue="0.96476000549999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
183
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
136 184
                         <constraints>
137
-                            <constraint firstItem="oMK-W6-xSz" firstAttribute="leading" secondItem="gGJ-33-J27" secondAttribute="trailing" constant="45" identifier="O7" id="0Pg-uk-G5W"/>
138 185
                             <constraint firstItem="gGJ-33-J27" firstAttribute="top" secondItem="beN-qE-bp8" secondAttribute="bottom" constant="8" identifier="O3" id="4zi-tr-PYm"/>
139
-                            <constraint firstItem="BO1-Dh-wF9" firstAttribute="trailing" secondItem="oMK-W6-xSz" secondAttribute="trailing" constant="165" identifier="O1" id="5K9-uu-c0P"/>
140
-                            <constraint firstItem="oMK-W6-xSz" firstAttribute="top" secondItem="beN-qE-bp8" secondAttribute="bottom" constant="8" identifier="O8" id="8Gc-Yc-YGJ"/>
141 186
                             <constraint firstItem="gGJ-33-J27" firstAttribute="leading" secondItem="BO1-Dh-wF9" secondAttribute="leading" constant="20" identifier="O4" id="CVA-X6-d88"/>
142
-                            <constraint firstItem="h4U-fy-FIW" firstAttribute="top" secondItem="oMK-W6-xSz" secondAttribute="bottom" constant="8" identifier="O5" id="CYO-wr-eSz"/>
143
-                            <constraint firstItem="BO1-Dh-wF9" firstAttribute="trailing" secondItem="h4U-fy-FIW" secondAttribute="trailing" constant="20" identifier="O2" id="GJa-xN-CbG"/>
144
-                            <constraint firstItem="h4U-fy-FIW" firstAttribute="leading" secondItem="BO1-Dh-wF9" secondAttribute="leading" constant="20" identifier="O6" id="ZTq-Rz-caW"/>
145 187
                             <constraint firstItem="nNl-6H-60E" firstAttribute="centerX" secondItem="k2H-mA-LDM" secondAttribute="centerX" identifier="O9" id="g79-aS-WzZ"/>
146
-                            <constraint firstItem="nNl-6H-60E" firstAttribute="top" secondItem="h4U-fy-FIW" secondAttribute="bottom" constant="14" identifier="O10" id="hEt-tS-9aq"/>
147 188
                             <constraint firstItem="iR7-hv-y5I" firstAttribute="top" secondItem="nNl-6H-60E" secondAttribute="bottom" constant="13" identifier="O11" id="z3j-SS-T9B"/>
148 189
                         </constraints>
149 190
                         <viewLayoutGuide key="safeArea" id="BO1-Dh-wF9"/>
@@ -176,7 +217,7 @@
176 217
                     <view key="view" contentMode="scaleToFill" id="zlh-oI-xFU">
177 218
                         <rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
178 219
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
179
-                        <color key="backgroundColor" red="0.35331264140000002" green="0.40740802879999999" blue="0.96476000549999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
220
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
180 221
                         <viewLayoutGuide key="safeArea" id="vRR-YT-vKf"/>
181 222
                     </view>
182 223
                     <connections>
@@ -288,8 +329,9 @@
288 329
                                     <nil key="highlightedColor"/>
289 330
                                 </label>
290 331
                                 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="We0-cd-h10">
291
-                                    <rect key="frame" x="8" y="88.333333333333329" width="398" height="33"/>
332
+                                    <rect key="frame" x="8" y="88.333333333333329" width="398" height="21"/>
292 333
                                     <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
334
+                                    <inset key="contentEdgeInsets" minX="7" minY="0.0" maxX="0.0" maxY="0.0"/>
293 335
                                     <state key="normal" title="See your Consent Form">
294 336
                                         <color key="titleColor" red="0.35331264140000002" green="0.40740802879999999" blue="0.96476000549999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
295 337
                                     </state>
@@ -298,7 +340,7 @@
298 340
                                     </connections>
299 341
                                 </button>
300 342
                                 <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="leading" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="wordWrap" translatesAutoresizingMaskIntoConstraints="NO" id="wkQ-h0-GIO">
301
-                                    <rect key="frame" x="8" y="129.33333333333334" width="398" height="41"/>
343
+                                    <rect key="frame" x="8" y="117.33333333333331" width="398" height="41"/>
302 344
                                     <fontDescription key="fontDescription" type="system" weight="semibold" pointSize="17"/>
303 345
                                     <inset key="contentEdgeInsets" minX="10" minY="10" maxX="10" maxY="10"/>
304 346
                                     <state key="normal" title="Leave Study">
@@ -326,8 +368,8 @@
326 368
                     </tableView>
327 369
                     <navigationItem key="navigationItem" title="Settings" id="uhv-Sm-Z60">
328 370
                         <barButtonItem key="leftBarButtonItem" style="plain" id="iJq-QW-VgJ">
329
-                            <button key="customView" opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="BiD-bE-waD" userLabel="Done">
330
-                                <rect key="frame" x="20" y="7" width="92" height="30"/>
371
+                            <button key="customView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="BiD-bE-waD" userLabel="Done">
372
+                                <rect key="frame" x="20" y="5" width="92" height="34"/>
331 373
                                 <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
332 374
                                 <fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
333 375
                                 <state key="normal" title="Done"/>

+ 30
- 0
EncuestaMarle/LaunchScreen.xib View File

@@ -0,0 +1,30 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
+    <device id="retina5_9" orientation="portrait" appearance="light"/>
4
+    <dependencies>
5
+        <deployment identifier="iOS"/>
6
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15510"/>
7
+        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+    </dependencies>
10
+    <objects>
11
+        <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
12
+        <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
13
+        <view contentMode="scaleToFill" id="iN0-l3-epB">
14
+            <rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
15
+            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
16
+            <subviews>
17
+                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="Icon-rounded" translatesAutoresizingMaskIntoConstraints="NO" id="gYv-gG-XQu">
18
+                    <rect key="frame" x="137" y="356" width="100" height="100"/>
19
+                    <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
20
+                </imageView>
21
+            </subviews>
22
+            <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
23
+            <viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
24
+            <point key="canvasLocation" x="137.68115942028987" y="152.67857142857142"/>
25
+        </view>
26
+    </objects>
27
+    <resources>
28
+        <image name="Icon-rounded" width="1024" height="1024"/>
29
+    </resources>
30
+</document>

+ 32
- 0
EncuestaMarle/OnboardingViewController.swift View File

@@ -534,6 +534,38 @@ extension OnboardingViewController : ORKTaskViewControllerDelegate {
534 534
     }
535 535
 }
536 536
 
537
+@IBDesignable extension UIButton {
538
+
539
+    @IBInspectable var borderWidth: CGFloat {
540
+        set {
541
+            layer.borderWidth = newValue
542
+        }
543
+        get {
544
+            return layer.borderWidth
545
+        }
546
+    }
547
+
548
+    @IBInspectable var cornerRadius: CGFloat {
549
+        set {
550
+            layer.cornerRadius = newValue
551
+        }
552
+        get {
553
+            return layer.cornerRadius
554
+        }
555
+    }
556
+
557
+    @IBInspectable var borderColor: UIColor? {
558
+        set {
559
+            guard let uiColor = newValue else { return }
560
+            layer.borderColor = uiColor.cgColor
561
+        }
562
+        get {
563
+            guard let color = layer.borderColor else { return nil }
564
+            return UIColor(cgColor: color)
565
+        }
566
+    }
567
+}
568
+
537 569
 //extension NSLayoutConstraint {
538 570
 //
539 571
 //    override public var description: String {

+ 4
- 12
Tania.xcodeproj/project.pbxproj View File

@@ -11,11 +11,11 @@
11 11
 		23C570622271EF80000C7E90 /* Podfile in Resources */ = {isa = PBXBuildFile; fileRef = 23C570612271EF80000C7E90 /* Podfile */; };
12 12
 		35439533237E182A00E73402 /* ResearchKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 35439530237E181E00E73402 /* ResearchKit.framework */; };
13 13
 		35439534237E182A00E73402 /* ResearchKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 35439530237E181E00E73402 /* ResearchKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14
+		35602D5E237E1D2D008C9338 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 35602D5D237E1D2D008C9338 /* LaunchScreen.xib */; };
14 15
 		371DA37622621B03006C22EC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 371DA37522621B03006C22EC /* AppDelegate.swift */; };
15 16
 		371DA37822621B03006C22EC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 371DA37722621B03006C22EC /* ViewController.swift */; };
16 17
 		371DA37B22621B03006C22EC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 371DA37922621B03006C22EC /* Main.storyboard */; };
17 18
 		371DA37E22621B03006C22EC /* EncuestaMarle.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 371DA37C22621B03006C22EC /* EncuestaMarle.xcdatamodeld */; };
18
-		371DA38322621B06006C22EC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 371DA38122621B06006C22EC /* LaunchScreen.storyboard */; };
19 19
 		371DA38E22621B06006C22EC /* EncuestaMarleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 371DA38D22621B06006C22EC /* EncuestaMarleTests.swift */; };
20 20
 		371DA39922621B06006C22EC /* EncuestaMarleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 371DA39822621B06006C22EC /* EncuestaMarleUITests.swift */; };
21 21
 		371DA3A822621C2D006C22EC /* EncuestaViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 371DA3A722621C2D006C22EC /* EncuestaViewController.swift */; };
@@ -82,12 +82,12 @@
82 82
 		23C456DA2270BAEF008CC76B /* ORKESerialization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ORKESerialization.h; sourceTree = "<group>"; };
83 83
 		23C570612271EF80000C7E90 /* Podfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Podfile; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
84 84
 		35439529237E181600E73402 /* ResearchKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = ResearchKit.xcodeproj; path = "../ResearchKit-master/ResearchKit.xcodeproj"; sourceTree = "<group>"; };
85
+		35602D5D237E1D2D008C9338 /* LaunchScreen.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LaunchScreen.xib; sourceTree = "<group>"; };
85 86
 		371DA37222621B03006C22EC /* Tania.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Tania.app; sourceTree = BUILT_PRODUCTS_DIR; };
86 87
 		371DA37522621B03006C22EC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
87 88
 		371DA37722621B03006C22EC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
88 89
 		371DA37A22621B03006C22EC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
89 90
 		371DA37D22621B03006C22EC /* EncuestaMarle.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = EncuestaMarle.xcdatamodel; sourceTree = "<group>"; };
90
-		371DA38222621B06006C22EC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
91 91
 		371DA38422621B06006C22EC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
92 92
 		371DA38922621B06006C22EC /* TaniaTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TaniaTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
93 93
 		371DA38D22621B06006C22EC /* EncuestaMarleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EncuestaMarleTests.swift; sourceTree = "<group>"; };
@@ -200,10 +200,10 @@
200 200
 				37E2BC7A2294C3C500432417 /* ProfileViewController.swift */,
201 201
 				372F3FFB229408F3003C414A /* ConsentDocument.swift */,
202 202
 				37E2BC782294BE5200432417 /* WithdrawViewController.swift */,
203
-				371DA38122621B06006C22EC /* LaunchScreen.storyboard */,
204 203
 				371DA38422621B06006C22EC /* Info.plist */,
205 204
 				379967E92292DFDD00DEE05F /* GoogleService-Info.plist */,
206 205
 				371DA37C22621B03006C22EC /* EncuestaMarle.xcdatamodeld */,
206
+				35602D5D237E1D2D008C9338 /* LaunchScreen.xib */,
207 207
 				371DA37722621B03006C22EC /* ViewController.swift */,
208 208
 			);
209 209
 			path = EncuestaMarle;
@@ -375,7 +375,7 @@
375 375
 			isa = PBXResourcesBuildPhase;
376 376
 			buildActionMask = 2147483647;
377 377
 			files = (
378
-				371DA38322621B06006C22EC /* LaunchScreen.storyboard in Resources */,
378
+				35602D5E237E1D2D008C9338 /* LaunchScreen.xib in Resources */,
379 379
 				379967EA2292DFDD00DEE05F /* GoogleService-Info.plist in Resources */,
380 380
 				23C570622271EF80000C7E90 /* Podfile in Resources */,
381 381
 				371DA37B22621B03006C22EC /* Main.storyboard in Resources */,
@@ -502,14 +502,6 @@
502 502
 			name = Main.storyboard;
503 503
 			sourceTree = "<group>";
504 504
 		};
505
-		371DA38122621B06006C22EC /* LaunchScreen.storyboard */ = {
506
-			isa = PBXVariantGroup;
507
-			children = (
508
-				371DA38222621B06006C22EC /* Base */,
509
-			);
510
-			name = LaunchScreen.storyboard;
511
-			sourceTree = "<group>";
512
-		};
513 505
 /* End PBXVariantGroup section */
514 506
 
515 507
 /* Begin XCBuildConfiguration section */