Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
7e49d2c4
Commit
7e49d2c4
authored
May 04, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make outlets private.
parent
354c58f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
32 deletions
+32
-32
Main.storyboard
...Customers/Sample App Customers/Base.lproj/Main.storyboard
+24
-24
LoginViewController.swift
... Customers/Sample App Customers/LoginViewController.swift
+2
-2
SignupViewController.swift
...Customers/Sample App Customers/SignupViewController.swift
+6
-6
No files found.
Mobile Buy SDK Sample Apps/Sample App Customers/Sample App Customers/Base.lproj/Main.storyboard
View file @
7e49d2c4
...
...
@@ -99,10 +99,10 @@
<rect
key=
"frame"
x=
"0.0"
y=
"35"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"CuO-8G-HGT"
id=
"T8u-Fh-qlI"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
4
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
3
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Email"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vbn-uC-XFw"
>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Email"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vbn-uC-XFw"
>
<rect
key=
"frame"
x=
"15"
y=
"1"
width=
"570"
height=
"43"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<textInputTraits
key=
"textInputTraits"
autocorrectionType=
"no"
/>
...
...
@@ -132,10 +132,10 @@
<rect
key=
"frame"
x=
"0.0"
y=
"79"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"xe1-NR-O6X"
id=
"tSM-6t-g5u"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
4
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
3
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Password"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gT0-G1-ODs"
>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Password"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"gT0-G1-ODs"
>
<rect
key=
"frame"
x=
"15"
y=
"1"
width=
"570"
height=
"43"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<textInputTraits
key=
"textInputTraits"
autocorrectionType=
"no"
secureTextEntry=
"YES"
/>
...
...
@@ -169,11 +169,11 @@
<rect
key=
"frame"
x=
"0.0"
y=
"159"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"6Cp-fP-mzd"
id=
"oJm-Gs-x7G"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"43
.5
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"43"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
contentMode=
"left"
text=
"Login"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"8jg-h9-et7"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"570"
height=
"43
.5
"
/>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"570"
height=
"43"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
...
...
@@ -215,11 +215,11 @@
<rect
key=
"frame"
x=
"0.0"
y=
"35"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"G5x-10-Ra9"
id=
"oaW-K3-MJI"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
4
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
3
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"First Name"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2iS-rI-oit"
>
<rect
key=
"frame"
x=
"15"
y=
"
1
"
width=
"570"
height=
"43"
/>
<rect
key=
"frame"
x=
"15"
y=
"
0.0
"
width=
"570"
height=
"43"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<textInputTraits
key=
"textInputTraits"
autocorrectionType=
"no"
/>
</textField>
...
...
@@ -248,11 +248,11 @@
<rect
key=
"frame"
x=
"0.0"
y=
"79"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"KyE-NI-hIx"
id=
"yua-gC-NXd"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
4
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
3
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Last Name"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"sNT-35-pHr"
>
<rect
key=
"frame"
x=
"15"
y=
"
1
"
width=
"570"
height=
"43"
/>
<rect
key=
"frame"
x=
"15"
y=
"
0.0
"
width=
"570"
height=
"43"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<textInputTraits
key=
"textInputTraits"
autocorrectionType=
"no"
/>
</textField>
...
...
@@ -271,8 +271,8 @@
<mask
key=
"constraints"
>
<exclude
reference=
"0eE-Gv-qxf"
/>
<exclude
reference=
"6N4-tQ-prP"
/>
<exclude
reference=
"cLu-TA-9B8"
/>
<exclude
reference=
"G2r-MP-acM"
/>
<exclude
reference=
"cLu-TA-9B8"
/>
</mask>
</variation>
</tableViewCellContentView>
...
...
@@ -285,11 +285,11 @@
<rect
key=
"frame"
x=
"0.0"
y=
"159"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"rJA-Oe-IPX"
id=
"Vze-vB-Kb5"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
4
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
3
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Email"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"U7o-nc-tZu"
>
<rect
key=
"frame"
x=
"15"
y=
"
1
"
width=
"570"
height=
"43"
/>
<rect
key=
"frame"
x=
"15"
y=
"
0.0
"
width=
"570"
height=
"43"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<textInputTraits
key=
"textInputTraits"
autocorrectionType=
"no"
/>
</textField>
...
...
@@ -307,9 +307,9 @@
<variation
key=
"default"
>
<mask
key=
"constraints"
>
<exclude
reference=
"7Hg-Uj-ZF9"
/>
<exclude
reference=
"lpm-EZ-gJG"
/>
<exclude
reference=
"XXR-Fp-EJ7"
/>
<exclude
reference=
"K0p-uO-zoC"
/>
<exclude
reference=
"XXR-Fp-EJ7"
/>
<exclude
reference=
"lpm-EZ-gJG"
/>
</mask>
</variation>
</tableViewCellContentView>
...
...
@@ -318,11 +318,11 @@
<rect
key=
"frame"
x=
"0.0"
y=
"203"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"GGU-a2-prv"
id=
"aZJ-PB-P8J"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
4
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
3
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Password"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Awl-iN-QFi"
>
<rect
key=
"frame"
x=
"15"
y=
"
1
"
width=
"570"
height=
"43"
/>
<rect
key=
"frame"
x=
"15"
y=
"
0.0
"
width=
"570"
height=
"43"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<textInputTraits
key=
"textInputTraits"
autocorrectionType=
"no"
secureTextEntry=
"YES"
/>
</textField>
...
...
@@ -339,10 +339,10 @@
</constraints>
<variation
key=
"default"
>
<mask
key=
"constraints"
>
<exclude
reference=
"ElK-kj-Jd3"
/>
<exclude
reference=
"M3G-xO-KYo"
/>
<exclude
reference=
"pdm-dE-ueY"
/>
<exclude
reference=
"vRw-8q-z4p"
/>
<exclude
reference=
"ElK-kj-Jd3"
/>
</mask>
</variation>
</tableViewCellContentView>
...
...
@@ -351,11 +351,11 @@
<rect
key=
"frame"
x=
"0.0"
y=
"247"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"jqO-Mq-Cnd"
id=
"tCu-Tf-cQW"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
4
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"4
3
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
placeholder=
"Confirm Password"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"I3H-FZ-oJG"
>
<rect
key=
"frame"
x=
"15"
y=
"
1
"
width=
"570"
height=
"43"
/>
<rect
key=
"frame"
x=
"15"
y=
"
0.0
"
width=
"570"
height=
"43"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<textInputTraits
key=
"textInputTraits"
autocorrectionType=
"no"
secureTextEntry=
"YES"
/>
</textField>
...
...
@@ -372,10 +372,10 @@
</constraints>
<variation
key=
"default"
>
<mask
key=
"constraints"
>
<exclude
reference=
"wbp-P1-eMD"
/>
<exclude
reference=
"4Ag-xS-apM"
/>
<exclude
reference=
"ZUz-gW-lal"
/>
<exclude
reference=
"DGY-8e-jA5"
/>
<exclude
reference=
"ZUz-gW-lal"
/>
<exclude
reference=
"wbp-P1-eMD"
/>
</mask>
</variation>
</tableViewCellContentView>
...
...
@@ -388,11 +388,11 @@
<rect
key=
"frame"
x=
"0.0"
y=
"327"
width=
"600"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"81f-nB-Sh2"
id=
"Mls-GG-NsX"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"43
.5
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"600"
height=
"43"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
contentMode=
"left"
text=
"Sign Up"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"0w1-5E-3cV"
>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"570"
height=
"43
.5
"
/>
<rect
key=
"frame"
x=
"15"
y=
"0.0"
width=
"570"
height=
"43"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
...
...
Mobile Buy SDK Sample Apps/Sample App Customers/Sample App Customers/LoginViewController.swift
View file @
7e49d2c4
...
...
@@ -29,8 +29,8 @@ import Buy
class
LoginViewController
:
UITableViewController
{
@IBOutlet
weak
var
emailField
:
UITextField
!
@IBOutlet
weak
var
passwordField
:
UITextField
!
@IBOutlet
private
weak
var
emailField
:
UITextField
!
@IBOutlet
private
weak
var
passwordField
:
UITextField
!
var
email
:
String
{
return
self
.
emailField
.
text
??
""
}
var
password
:
String
{
return
self
.
passwordField
.
text
??
""
}
...
...
Mobile Buy SDK Sample Apps/Sample App Customers/Sample App Customers/SignupViewController.swift
View file @
7e49d2c4
...
...
@@ -29,11 +29,11 @@ import Buy
class
SignupViewController
:
UITableViewController
{
@IBOutlet
weak
var
firstNameField
:
UITextField
!
@IBOutlet
weak
var
lastNameField
:
UITextField
!
@IBOutlet
weak
var
emailField
:
UITextField
!
@IBOutlet
weak
var
passwordField
:
UITextField
!
@IBOutlet
weak
var
passwordConfirmField
:
UITextField
!
@IBOutlet
private
weak
var
firstNameField
:
UITextField
!
@IBOutlet
private
weak
var
lastNameField
:
UITextField
!
@IBOutlet
private
weak
var
emailField
:
UITextField
!
@IBOutlet
private
weak
var
passwordField
:
UITextField
!
@IBOutlet
private
weak
var
passwordConfirmField
:
UITextField
!
var
firstName
:
String
{
return
self
.
firstNameField
.
text
??
""
}
var
lastName
:
String
{
return
self
.
lastNameField
.
text
??
""
}
...
...
@@ -62,7 +62,7 @@ class SignupViewController: UITableViewController {
// MARK: - UITableViewDelegate -
//
override
func
tableView
(
tableView
:
UITableView
,
didSelectRowAtIndexPath
indexPath
:
NSIndexPath
)
{
if
indexPath
.
section
==
1
{
if
indexPath
.
section
==
2
{
if
!
self
.
email
.
isEmpty
&&
!
self
.
password
.
isEmpty
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment