Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
2108f4ff
Commit
2108f4ff
authored
Oct 29, 2018
by
Jose Blaya
Browse files
Get Started screen Light & Dark
parent
25c1fde5
Changes
21
Hide whitespace changes
Inline
Side-by-side
PIALibrary.xcodeproj/project.pbxproj
View file @
2108f4ff
...
...
@@ -258,6 +258,7 @@
84577FC3213D9AEA006DEC3D
/* UITextField+PlaceholderColor.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84577FC2213D9AEA006DEC3D
/* UITextField+PlaceholderColor.swift */
;
};
84577FC5213D9B4D006DEC3D
/* UILabel+LineHeight.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84577FC4213D9B4D006DEC3D
/* UILabel+LineHeight.swift */
;
};
84D5DA702126CE2900F753F8
/* QRCameraScannerViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
84D5DA6F2126CE2900F753F8
/* QRCameraScannerViewController.swift */
;
};
DD0AC790218715B8009B576B
/* PIAButton.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DD0AC78F218715B8009B576B
/* PIAButton.swift */
;
};
DD31498F21834B3F008E26E8
/* GetStartedViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DD31498E21834B3F008E26E8
/* GetStartedViewController.swift */
;
};
DD314990218350D1008E26E8
/* SwiftGen+ScenesStoryboards.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DDC812472176166500CB290C
/* SwiftGen+ScenesStoryboards.swift */
;
};
DD314991218350D1008E26E8
/* SwiftGen+SeguesStoryboards.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
DDC81249217617F900CB290C
/* SwiftGen+SeguesStoryboards.swift */
;
};
...
...
@@ -511,6 +512,7 @@
B5891A421D469750A80038F5
/* Pods_PIALibrary_PIALibrary_iOS.framework */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.framework
;
includeInIndex
=
0
;
path
=
Pods_PIALibrary_PIALibrary_iOS.framework
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
CC6C2A127220E1417DE215A1
/* Pods_PIALibrary_PIALibraryTests_iOS.framework */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.framework
;
includeInIndex
=
0
;
path
=
Pods_PIALibrary_PIALibraryTests_iOS.framework
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
DA1A1A4FDD6B854C1227A5F0
/* Pods_PIALibrary_PIALibraryHost_iOS.framework */
=
{
isa
=
PBXFileReference
;
explicitFileType
=
wrapper.framework
;
includeInIndex
=
0
;
path
=
Pods_PIALibrary_PIALibraryHost_iOS.framework
;
sourceTree
=
BUILT_PRODUCTS_DIR
;
};
DD0AC78F218715B8009B576B
/* PIAButton.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
PIAButton.swift
;
sourceTree
=
"<group>"
;
};
DD31498E21834B3F008E26E8
/* GetStartedViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
GetStartedViewController.swift
;
sourceTree
=
"<group>"
;
};
DDC812472176166500CB290C
/* SwiftGen+ScenesStoryboards.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"SwiftGen+ScenesStoryboards.swift"
;
sourceTree
=
"<group>"
;
};
DDC81249217617F900CB290C
/* SwiftGen+SeguesStoryboards.swift */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.swift
;
path
=
"SwiftGen+SeguesStoryboards.swift"
;
sourceTree
=
"<group>"
;
};
...
...
@@ -793,6 +795,7 @@
84577FC0213D9A23006DEC3D
/* UIImage+Color.swift */
,
84577FC2213D9AEA006DEC3D
/* UITextField+PlaceholderColor.swift */
,
84577FC4213D9B4D006DEC3D
/* UILabel+LineHeight.swift */
,
DD0AC78F218715B8009B576B
/* PIAButton.swift */
,
84577FB9213D8EB2006DEC3D
/* Styles */
,
);
path
=
iOS
;
...
...
@@ -1536,6 +1539,7 @@
84577FBB213D8ED1006DEC3D
/* StyleGuideHelpers.swift in Sources */
,
DD314991218350D1008E26E8
/* SwiftGen+SeguesStoryboards.swift in Sources */
,
0EB8C0701F9CD38B005857E4
/* WelcomePageViewController.swift in Sources */
,
DD0AC790218715B8009B576B
/* PIAButton.swift in Sources */
,
0EB8C0651F9CD38B005857E4
/* BorderedTextField.swift in Sources */
,
0EA4C4391FDDE24B0041C3D8
/* ServersBundle.swift in Sources */
,
0E53A84A1FE5BA52000C2A18
/* Daemon.swift in Sources */
,
...
...
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Contents.json
0 → 100644
View file @
2108f4ff
{
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/Contents.json
0 → 100644
View file @
2108f4ff
{
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/centered-dark-map.imageset/Contents.json
0 → 100644
View file @
2108f4ff
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"darkDots-3.pdf"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/centered-dark-map.imageset/darkDots-3.pdf
0 → 100644
View file @
2108f4ff
File added
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/centered-light-map.imageset/Contents.json
0 → 100644
View file @
2108f4ff
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"darkDots-4.pdf"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/centered-light-map.imageset/darkDots-4.pdf
0 → 100644
View file @
2108f4ff
File added
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/logo-dark.imageset/Contents.json
0 → 100644
View file @
2108f4ff
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"piaWhiteCopy.pdf"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/logo-dark.imageset/piaWhiteCopy.pdf
0 → 100644
View file @
2108f4ff
File added
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/logo-light.imageset/Contents.json
0 → 100644
View file @
2108f4ff
{
"images"
:
[
{
"idiom"
:
"universal"
,
"filename"
:
"piaDark2Copy2.pdf"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
PIALibrary/Resources/UI/iOS/UI.xcassets/PIAX/Global/logo-light.imageset/piaDark2Copy2.pdf
0 → 100644
View file @
2108f4ff
File added
PIALibrary/Resources/UI/iOS/Welcome.storyboard
View file @
2108f4ff
...
...
@@ -1099,29 +1099,15 @@ You will not be charged during this process.</string>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1dA-og-SGN"
>
<rect
key=
"frame"
x=
"0.0"
y=
"20"
width=
"375"
height=
"150"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"
nav-
logo"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DVe-fv-utO"
>
<rect
key=
"frame"
x=
"56.5"
y=
"
6
2"
width=
"262.5"
height=
"3
6
"
/>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"logo
-light
"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DVe-fv-utO"
>
<rect
key=
"frame"
x=
"56.5"
y=
"
4
2"
width=
"262.5"
height=
"3
9
"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Version 1.2.3"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tqQ-G1-84D"
>
<rect
key=
"frame"
x=
"157"
y=
"
133
"
width=
"61.5"
height=
"12"
/>
<rect
key=
"frame"
x=
"157"
y=
"
98
"
width=
"61.5"
height=
"12"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"10"
/>
<color
key=
"textColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Yjr-lH-vCL"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"44"
height=
"55"
/>
<constraints>
<constraint
firstAttribute=
"height"
relation=
"greaterThanOrEqual"
constant=
"44"
id=
"0AQ-8P-3Zn"
/>
<constraint
firstAttribute=
"width"
relation=
"greaterThanOrEqual"
constant=
"44"
id=
"gIh-xv-Pch"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"boldSystem"
pointSize=
"36"
/>
<state
key=
"normal"
title=
"×"
>
<color
key=
"titleColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</state>
<connections>
<action
selector=
"cancelClicked:"
destination=
"vXZ-lx-hvc"
eventType=
"touchUpInside"
id=
"OIA-Sp-ACw"
/>
</connections>
</button>
<button
hidden=
"YES"
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"right"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1KN-RL-PSo"
>
<rect
key=
"frame"
x=
"205"
y=
"12.5"
width=
"150"
height=
"30"
/>
<constraints>
...
...
@@ -1138,17 +1124,13 @@ You will not be charged during this process.</string>
<color
key=
"backgroundColor"
white=
"0.33333333329999998"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstItem=
"DVe-fv-utO"
firstAttribute=
"width"
relation=
"lessThanOrEqual"
secondItem=
"1dA-og-SGN"
secondAttribute=
"width"
multiplier=
"0.7"
id=
"6uc-qt-O9F"
/>
<constraint
firstAttribute=
"trailing"
relation=
"greaterThanOrEqual"
secondItem=
"Yjr-lH-vCL"
secondAttribute=
"trailing"
id=
"Cd5-U3-Fzc"
/>
<constraint
firstItem=
"DVe-fv-utO"
firstAttribute=
"centerX"
secondItem=
"1dA-og-SGN"
secondAttribute=
"centerX"
id=
"JHl-Mr-6Zn"
/>
<constraint
firstItem=
"DVe-fv-utO"
firstAttribute=
"centerY"
secondItem=
"1dA-og-SGN"
secondAttribute=
"centerY"
constant=
"5"
id=
"KwV-ne-YCL"
/>
<constraint
firstAttribute=
"height"
constant=
"150"
id=
"PTk-Kq-KOD"
/>
<constraint
firstItem=
"tqQ-G1-84D"
firstAttribute=
"top"
secondItem=
"DVe-fv-utO"
secondAttribute=
"bottom"
constant=
"17"
id=
"ZSv-GP-z0I"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"1KN-RL-PSo"
secondAttribute=
"trailing"
constant=
"20"
id=
"bbK-hy-orF"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"tqQ-G1-84D"
secondAttribute=
"bottom"
constant=
"5"
id=
"esj-Ac-scj"
/>
<constraint
firstItem=
"Yjr-lH-vCL"
firstAttribute=
"top"
secondItem=
"1dA-og-SGN"
secondAttribute=
"top"
id=
"fer-dx-EjF"
/>
<constraint
firstItem=
"Yjr-lH-vCL"
firstAttribute=
"leading"
secondItem=
"1dA-og-SGN"
secondAttribute=
"leading"
id=
"gxJ-kW-ijG"
/>
<constraint
firstItem=
"1KN-RL-PSo"
firstAttribute=
"centerY"
secondItem=
"Yjr-lH-vCL"
secondAttribute=
"centerY"
id=
"iOh-DH-5k6"
/>
<constraint
firstItem=
"DVe-fv-utO"
firstAttribute=
"top"
secondItem=
"1dA-og-SGN"
secondAttribute=
"top"
constant=
"42"
id=
"flx-25-TlD"
/>
<constraint
firstItem=
"tqQ-G1-84D"
firstAttribute=
"centerX"
secondItem=
"DVe-fv-utO"
secondAttribute=
"centerX"
id=
"jWC-WI-5gY"
/>
<constraint
firstItem=
"1KN-RL-PSo"
firstAttribute=
"
leading"
relation=
"greaterThanOrEqual
"
secondItem=
"
Yjr-lH-vCL
"
secondAttribute=
"t
railing"
id=
"yKn-mm-GVH
"
/>
<constraint
firstItem=
"1KN-RL-PSo"
firstAttribute=
"
top
"
secondItem=
"
1dA-og-SGN
"
secondAttribute=
"t
op"
constant=
"12.5"
id=
"uSg-Zb-eh2
"
/>
</constraints>
<variation
key=
"default"
>
<mask
key=
"constraints"
>
...
...
@@ -1161,14 +1143,60 @@ You will not be charged during this process.</string>
</mask>
</variation>
</view>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"centered-dark-map"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"6Md-hc-CJ2"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JeO-BO-hZn"
customClass=
"PIAButton"
customModule=
"PIALibrary"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"25"
y=
"477"
width=
"325"
height=
"50"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"lv6-ch-s4O"
/>
</constraints>
<state
key=
"normal"
title=
"Button"
/>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ei6-5m-nGj"
customClass=
"PIAButton"
customModule=
"PIALibrary"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"25"
y=
"547"
width=
"325"
height=
"50"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"Hl4-Za-4hO"
/>
</constraints>
<state
key=
"normal"
title=
"Button"
/>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Gwt-hk-1rU"
>
<rect
key=
"frame"
x=
"25"
y=
"617"
width=
"46"
height=
"20"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"20"
id=
"SL8-XB-pmh"
/>
</constraints>
<state
key=
"normal"
title=
"Button"
/>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"right"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"BfP-Y8-7Sg"
>
<rect
key=
"frame"
x=
"304"
y=
"617"
width=
"46"
height=
"20"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"20"
id=
"8C6-6B-4dA"
/>
</constraints>
<state
key=
"normal"
title=
"Button"
/>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"Gwt-hk-1rU"
firstAttribute=
"top"
secondItem=
"Ei6-5m-nGj"
secondAttribute=
"bottom"
constant=
"20"
id=
"1V5-nb-cYc"
/>
<constraint
firstItem=
"1dA-og-SGN"
firstAttribute=
"top"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"top"
id=
"1hv-Rv-uqE"
/>
<constraint
firstItem=
"1dA-og-SGN"
firstAttribute=
"leading"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"leading"
id=
"4lw-J6-QFB"
/>
<constraint
firstItem=
"6Md-hc-CJ2"
firstAttribute=
"trailing"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"trailing"
id=
"8Cl-as-soo"
/>
<constraint
firstItem=
"BfP-Y8-7Sg"
firstAttribute=
"top"
secondItem=
"Ei6-5m-nGj"
secondAttribute=
"bottom"
constant=
"20"
id=
"C0W-0K-lZ5"
/>
<constraint
firstItem=
"Ei6-5m-nGj"
firstAttribute=
"leading"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"leading"
constant=
"25"
id=
"GVX-gy-qq9"
/>
<constraint
firstItem=
"1dA-og-SGN"
firstAttribute=
"trailing"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"trailing"
id=
"Qvc-bY-jCB"
/>
<constraint
firstItem=
"Gwt-hk-1rU"
firstAttribute=
"leading"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"leading"
constant=
"25"
id=
"TIQ-q7-T2y"
/>
<constraint
firstItem=
"6Md-hc-CJ2"
firstAttribute=
"leading"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"leading"
id=
"UOL-5G-gEZ"
/>
<constraint
firstItem=
"JeO-BO-hZn"
firstAttribute=
"leading"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"leading"
constant=
"25"
id=
"Un2-Oy-zV5"
/>
<constraint
firstItem=
"NRk-y0-6j5"
firstAttribute=
"trailing"
secondItem=
"Ei6-5m-nGj"
secondAttribute=
"trailing"
constant=
"25"
id=
"ZPp-Tg-Cc7"
/>
<constraint
firstItem=
"6Md-hc-CJ2"
firstAttribute=
"bottom"
secondItem=
"NRk-y0-6j5"
secondAttribute=
"bottom"
id=
"Zvo-Qg-IBV"
/>
<constraint
firstItem=
"6Md-hc-CJ2"
firstAttribute=
"top"
secondItem=
"tO9-0u-CbU"
secondAttribute=
"top"
id=
"btC-we-gqe"
/>
<constraint
firstItem=
"Ei6-5m-nGj"
firstAttribute=
"top"
secondItem=
"JeO-BO-hZn"
secondAttribute=
"bottom"
constant=
"20"
id=
"chh-Fj-I7B"
/>
<constraint
firstItem=
"WRA-UX-3e4"
firstAttribute=
"top"
secondItem=
"tO9-0u-CbU"
secondAttribute=
"top"
id=
"daB-2g-pDK"
/>
<constraint
firstItem=
"NRk-y0-6j5"
firstAttribute=
"trailing"
secondItem=
"BfP-Y8-7Sg"
secondAttribute=
"trailing"
constant=
"25"
id=
"e9k-F8-Yq9"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"WRA-UX-3e4"
secondAttribute=
"bottom"
id=
"eDE-t7-CEc"
/>
<constraint
firstItem=
"NRk-y0-6j5"
firstAttribute=
"bottom"
secondItem=
"BfP-Y8-7Sg"
secondAttribute=
"bottom"
constant=
"30"
id=
"gxT-Nt-RD1"
/>
<constraint
firstItem=
"NRk-y0-6j5"
firstAttribute=
"trailing"
secondItem=
"JeO-BO-hZn"
secondAttribute=
"trailing"
constant=
"25"
id=
"ifU-VR-Vy5"
/>
<constraint
firstItem=
"NRk-y0-6j5"
firstAttribute=
"bottom"
secondItem=
"Gwt-hk-1rU"
secondAttribute=
"bottom"
constant=
"30"
id=
"mjo-Ge-Erf"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"WRA-UX-3e4"
secondAttribute=
"trailing"
id=
"oa7-wW-wdQ"
/>
<constraint
firstItem=
"WRA-UX-3e4"
firstAttribute=
"leading"
secondItem=
"tO9-0u-CbU"
secondAttribute=
"leading"
id=
"wzy-fD-6vg"
/>
</constraints>
...
...
@@ -1176,11 +1204,15 @@ You will not be charged during this process.</string>
</view>
<navigationItem
key=
"navigationItem"
id=
"AOC-0U-thD"
/>
<connections>
<outlet
property=
"buttonCancel"
destination=
"Yjr-lH-vCL"
id=
"yJI-R9-si7"
/>
<outlet
property=
"buttonEnvironment"
destination=
"1KN-RL-PSo"
id=
"0se-De-Dpy"
/>
<outlet
property=
"buyButton"
destination=
"Ei6-5m-nGj"
id=
"HBC-ry-Qpb"
/>
<outlet
property=
"centeredMap"
destination=
"6Md-hc-CJ2"
id=
"w5i-tR-90V"
/>
<outlet
property=
"constraintHeaderHeight"
destination=
"PTk-Kq-KOD"
id=
"A9j-sv-B5M"
/>
<outlet
property=
"couldNotGetPlanButton"
destination=
"BfP-Y8-7Sg"
id=
"nvw-I5-kck"
/>
<outlet
property=
"imvLogo"
destination=
"DVe-fv-utO"
id=
"gQ0-lh-kIP"
/>
<outlet
property=
"labelVersion"
destination=
"tqQ-G1-84D"
id=
"Rms-Mq-Nvf"
/>
<outlet
property=
"loginButton"
destination=
"JeO-BO-hZn"
id=
"KbS-qe-l4K"
/>
<outlet
property=
"redeemButton"
destination=
"Gwt-hk-1rU"
id=
"qS7-q2-RH8"
/>
<outlet
property=
"viewHeader"
destination=
"1dA-og-SGN"
id=
"Gbx-r1-tPk"
/>
<outlet
property=
"viewHeaderBackground"
destination=
"WRA-UX-3e4"
id=
"GNJ-M5-SWb"
/>
</connections>
...
...
@@ -1514,7 +1546,9 @@ You will not be charged during this process.</string>
</scene>
</scenes>
<resources>
<image
name=
"centered-dark-map"
width=
"375"
height=
"300"
/>
<image
name=
"close-icon"
width=
"50"
height=
"50"
/>
<image
name=
"logo-light"
width=
"298"
height=
"39"
/>
<image
name=
"nav-logo"
width=
"354"
height=
"36"
/>
<image
name=
"qr-code"
width=
"325"
height=
"325"
/>
</resources>
...
...
PIALibrary/Resources/UI/iOS/en.lproj/Welcome.strings
View file @
2108f4ff
...
...
@@ -62,3 +62,5 @@
"camera.access.error.title" = "Camera not available";
"camera.access.error.message" = "Your device does not support scanning QR codes. Please use a device with a camera.";
"camera.access.denied.message" = "Enable camera access so you can scan QR codes to redeem a gift card.";
"getstarted.buttons.buyaccount" = "Buy account";
PIALibrary/Sources/UI/Shared/PIAColors.swift
View file @
2108f4ff
...
...
@@ -10,105 +10,105 @@ import Foundation
import
UIKit
extension
UIColor
{
public
extension
UIColor
{
class
var
g
rey10
:
UIColor
{
public
class
var
piaG
rey10
:
UIColor
{
return
UIColor
(
red
:
34.0
/
255.0
,
green
:
37.0
/
255.0
,
blue
:
46.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
rey7
:
UIColor
{
public
class
var
piaG
rey7
:
UIColor
{
return
UIColor
(
red
:
43.0
/
255.0
,
green
:
46.0
/
255.0
,
blue
:
57.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
rey6
:
UIColor
{
public
class
var
piaG
rey6
:
UIColor
{
return
UIColor
(
red
:
50.0
/
255.0
,
green
:
54.0
/
255.0
,
blue
:
66.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
rey5
:
UIColor
{
public
class
var
piaG
rey5
:
UIColor
{
return
UIColor
(
red
:
92.0
/
255.0
,
green
:
99.0
/
255.0
,
blue
:
112.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
rey4
:
UIColor
{
public
class
var
piaG
rey4
:
UIColor
{
return
UIColor
(
red
:
136.0
/
255.0
,
green
:
144.0
/
255.0
,
blue
:
153.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
rey2
:
UIColor
{
public
class
var
piaG
rey2
:
UIColor
{
return
UIColor
(
red
:
215.0
/
255.0
,
green
:
216.0
/
255.0
,
blue
:
217.0
/
255.0
,
alpha
:
1.0
)
}
class
var
w
hite
:
UIColor
{
public
class
var
piaW
hite
:
UIColor
{
return
UIColor
(
white
:
1.0
,
alpha
:
1.0
)
}
class
var
g
rey1
:
UIColor
{
public
class
var
piaG
rey1
:
UIColor
{
return
UIColor
(
white
:
238.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
reen
:
UIColor
{
public
class
var
piaG
reen
:
UIColor
{
return
UIColor
(
red
:
93.0
/
255.0
,
green
:
223.0
/
255.0
,
blue
:
90.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
reenDark20
:
UIColor
{
public
class
var
piaG
reenDark20
:
UIColor
{
return
UIColor
(
red
:
76.0
/
255.0
,
green
:
182.0
/
255.0
,
blue
:
73.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
reenDark50
:
UIColor
{
public
class
var
piaG
reenDark50
:
UIColor
{
return
UIColor
(
red
:
3.0
/
255.0
,
green
:
121.0
/
255.0
,
blue
:
0.0
,
alpha
:
1.0
)
}
class
var
y
ellow
:
UIColor
{
public
class
var
piaY
ellow
:
UIColor
{
return
UIColor
(
red
:
249.0
/
255.0
,
green
:
207.0
/
255.0
,
blue
:
1.0
/
255.0
,
alpha
:
1.0
)
}
class
var
y
ellowDark
:
UIColor
{
public
class
var
piaY
ellowDark
:
UIColor
{
return
UIColor
(
red
:
230.0
/
255.0
,
green
:
180.0
/
255.0
,
blue
:
0.0
,
alpha
:
1.0
)
}
class
var
r
ed
:
UIColor
{
public
class
var
piaR
ed
:
UIColor
{
return
UIColor
(
red
:
242.0
/
255.0
,
green
:
68.0
/
255.0
,
blue
:
88.0
/
255.0
,
alpha
:
1.0
)
}
class
var
r
edDark
:
UIColor
{
public
class
var
piaR
edDark
:
UIColor
{
return
UIColor
(
red
:
178.0
/
255.0
,
green
:
53.0
/
255.0
,
blue
:
45.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
reenlight
:
UIColor
{
public
class
var
piaG
reenlight
:
UIColor
{
return
UIColor
(
red
:
122.0
/
255.0
,
green
:
250.0
/
255.0
,
blue
:
120.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
reenDark30
:
UIColor
{
public
class
var
piaG
reenDark30
:
UIColor
{
return
UIColor
(
red
:
64.0
/
255.0
,
green
:
153.0
/
255.0
,
blue
:
61.0
/
255.0
,
alpha
:
1.0
)
}
class
var
y
ellowLight
:
UIColor
{
public
class
var
piaY
ellowLight
:
UIColor
{
return
UIColor
(
red
:
249.0
/
255.0
,
green
:
208.0
/
255.0
,
blue
:
1.0
/
255.0
,
alpha
:
1.0
)
}
class
var
or
range
:
UIColor
{
public
class
var
piaO
range
:
UIColor
{
return
UIColor
(
red
:
245.0
/
255.0
,
green
:
166.0
/
255.0
,
blue
:
35.0
/
255.0
,
alpha
:
1.0
)
}
class
var
b
lack
:
UIColor
{
public
class
var
piaB
lack
:
UIColor
{
return
UIColor
(
white
:
0.0
,
alpha
:
1.0
)
}
class
var
g
rey12
:
UIColor
{
public
class
var
piaG
rey12
:
UIColor
{
return
UIColor
(
red
:
25.0
/
255.0
,
green
:
27.0
/
255.0
,
blue
:
33.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
rey11
:
UIColor
{
public
class
var
piaG
rey11
:
UIColor
{
return
UIColor
(
red
:
31.0
/
255.0
,
green
:
33.0
/
255.0
,
blue
:
42.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
rey8
:
UIColor
{
public
class
var
piaG
rey8
:
UIColor
{
return
UIColor
(
red
:
41.0
/
255.0
,
green
:
44.0
/
255.0
,
blue
:
56.0
/
255.0
,
alpha
:
1.0
)
}
class
var
g
rey3
:
UIColor
{
public
class
var
piaG
rey3
:
UIColor
{
return
UIColor
(
red
:
147.0
/
255.0
,
green
:
155.0
/
255.0
,
blue
:
163.0
/
255.0
,
alpha
:
1.0
)
}
class
var
t
ransparentGrey
:
UIColor
{
public
class
var
piaT
ransparentGrey
:
UIColor
{
return
UIColor
(
red
:
147.0
/
255.0
,
green
:
155.0
/
255.0
,
blue
:
163.0
/
255.0
,
alpha
:
0.13
)
}
...
...
PIALibrary/Sources/UI/iOS/PIAButton.swift
0 → 100644
View file @
2108f4ff
//
// PIAButton.swift
// PIALibrary-iOS
//
// Created by Jose Antonio Blaya Garcia on 29/10/2018.
// Copyright © 2018 London Trust Media. All rights reserved.
//
import
Foundation
import
UIKit
// UIButton with rounded corners and border to be used throughout PIA application
public
class
PIAButton
:
UIButton
{
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
self
.
setupView
()
}
required
init
?(
coder
aDecoder
:
NSCoder
)
{
super
.
init
(
coder
:
aDecoder
)
self
.
setupView
()
}
private
func
setupView
()
{
self
.
layer
.
cornerRadius
=
6.0
clipsToBounds
=
true
}
func
setRounded
()
{
self
.
layer
.
cornerRadius
=
6.0
clipsToBounds
=
true
}
func
setBorder
(
withSize
size
:
CGFloat
,
andColor
color
:
UIColor
)
{
self
.
layer
.
borderWidth
=
size
self
.
layer
.
borderColor
=
color
.
cgColor
clipsToBounds
=
true
}
func
setPlain
()
{
self
.
layer
.
cornerRadius
=
0.0
self
.
layer
.
borderWidth
=
0.0
self
.
layer
.
borderColor
=
UIColor
.
clear
.
cgColor
clipsToBounds
=
true
}
}
PIALibrary/Sources/UI/iOS/Styles/TextStyles.swift
View file @
2108f4ff
...
...
@@ -17,7 +17,7 @@ public extension TextStyle {
public
static
let
textStyle1
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
18
),
color
:
UIColor
.
w
hite
,
color
:
UIColor
.
piaW
hite
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -26,7 +26,7 @@ public extension TextStyle {
public
static
let
textStyle2
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
18
),
color
:
UIColor
.
g
rey6
,
color
:
UIColor
.
piaG
rey6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -35,7 +35,7 @@ public extension TextStyle {
public
static
let
textStyle3
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
18
),
color
:
UIColor
.
g
rey
6
,
color
:
UIColor
.
piaG
rey
4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -44,7 +44,7 @@ public extension TextStyle {
public
static
let
textStyle4
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
18
),
color
:
UIColor
.
white
,
color
:
UIColor
.
piaGreenDark20
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -52,8 +52,8 @@ public extension TextStyle {
)
public
static
let
textStyle5
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
color
:
UIColor
.
greenDark20
,
font
:
UIFont
.
regularFontWith
(
size
:
1
8
),
color
:
UIColor
.
piaRed
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -62,7 +62,7 @@ public extension TextStyle {
public
static
let
textStyle6
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
red
,
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -71,7 +71,7 @@ public extension TextStyle {
public
static
let
textStyle7
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
white
,
color
:
UIColor
.
piaGrey6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -80,7 +80,7 @@ public extension TextStyle {
public
static
let
textStyle8
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
g
rey
6
,
color
:
UIColor
.
piaG
rey
4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -89,7 +89,7 @@ public extension TextStyle {
public
static
let
textStyle9
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
g
reenDark20
,
color
:
UIColor
.
piaG
reenDark20
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -98,7 +98,7 @@ public extension TextStyle {
public
static
let
textStyle10
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
white
,
color
:
UIColor
.
piaRed
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -106,7 +106,7 @@ public extension TextStyle {
)
public
static
let
textStyle11
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
font
:
UIFont
.
regularFontWith
(
size
:
1
2
),
color
:
UIColor
.
white
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
...
...
@@ -115,8 +115,8 @@ public extension TextStyle {
)
public
static
let
textStyle12
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
1
4
),
color
:
UIColor
.
g
rey
4
,
font
:
UIFont
.
regularFontWith
(
size
:
1
2
),
color
:
UIColor
.
piaG
rey
6
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -125,7 +125,7 @@ public extension TextStyle {
public
static
let
textStyle13
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
14
),
color
:
UIColor
.
g
rey
6
,
color
:
UIColor
.
piaG
rey
4
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -134,7 +134,7 @@ public extension TextStyle {
public
static
let
textStyle14
=
TextStyle
(
font
:
UIFont
.
regularFontWith
(
size
:
12
),
color
:
UIColor
.
grey6
,
color
:
UIColor
.
piaGreenDark20
,
foregroundColor
:
nil
,
backgroundColor
:
nil
,
tintColor
:
nil
,
...
...
@@ -143,7 +143,7 @@ public extension TextStyle {
public
static
let
textStyle15
=
TextStyle
(