Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-10-13 17:02:49 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8b5d3a96fa1bb1d7046218a6524a9dfd178a7906
8b5d3a96
1 parent
ccad3084
fix button insets
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
44 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
8b5d3a9
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
8b5d3a9
...
...
@@ -73,14 +73,16 @@ import SwiftEventBus
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
12.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
8
,
bottom
:
0
,
right
:
8
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
redeemButton
.
widthAnchor
.
constraint
(
equalToConstant
:
250
)
.
isActive
=
true
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
redeemButton
.
widthAnchor
.
constraint
(
equalTo
:
view
.
widthAnchor
,
multiplier
:
0.6
)
.
isActive
=
true
}
//
if UIDevice.current.userInterfaceIdiom == .pad {
//
// iPad
//
redeemButton.widthAnchor.constraint(equalToConstant: 250).isActive = true
//
} else {
//
// not iPad (iPhone, mac, tv, carPlay, unspecified)
//
redeemButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
//
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
8b5d3a9
...
...
@@ -119,28 +119,32 @@ import AVFoundation
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
12.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
8
,
bottom
:
0
,
right
:
8
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
redeemButton
.
widthAnchor
.
constraint
(
equalToConstant
:
250
)
.
isActive
=
true
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
redeemButton
.
widthAnchor
.
constraint
(
equalTo
:
view
.
widthAnchor
,
multiplier
:
0.6
)
.
isActive
=
true
}
//
if UIDevice.current.userInterfaceIdiom == .pad {
//
// iPad
//
redeemButton.widthAnchor.constraint(equalToConstant: 250).isActive = true
//
} else {
//
// not iPad (iPhone, mac, tv, carPlay, unspecified)
//
redeemButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
//
}
mapButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
16
)
mapButton
.
setTitle
(
"Δες τα καταστήματα"
,
for
:
.
normal
)
mapButton
.
setTitleColor
(
UIColor
(
red
:
0.31
,
green
:
0.62
,
blue
:
0.18
,
alpha
:
1.00
),
for
:
.
normal
)
mapButton
.
backgroundColor
=
UIColor
(
red
:
0.90
,
green
:
0.90
,
blue
:
0.90
,
alpha
:
1.00
)
mapButton
.
layer
.
cornerRadius
=
12.0
mapButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
mapButton
.
intrinsicContentSize
.
width
,
height
:
44
)
mapButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
8
,
bottom
:
0
,
right
:
8
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
mapButton
.
widthAnchor
.
constraint
(
equalToConstant
:
250
)
.
isActive
=
true
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
mapButton
.
widthAnchor
.
constraint
(
equalTo
:
view
.
widthAnchor
,
multiplier
:
0.6
)
.
isActive
=
true
}
//
if UIDevice.current.userInterfaceIdiom == .pad {
//
// iPad
//
mapButton.widthAnchor.constraint(equalToConstant: 250).isActive = true
//
} else {
//
// not iPad (iPhone, mac, tv, carPlay, unspecified)
//
mapButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
//
}
termsButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Regular"
,
size
:
16
)
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
8b5d3a9
...
...
@@ -79,16 +79,18 @@ import SwiftEventBus
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
12.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
8
,
bottom
:
0
,
right
:
8
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
redeemButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
19
)
redeemButton
.
widthAnchor
.
constraint
(
equalToConstant
:
250
)
.
isActive
=
true
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
redeemButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
16
)
redeemButton
.
widthAnchor
.
constraint
(
equalTo
:
view
.
widthAnchor
,
multiplier
:
0.6
)
.
isActive
=
true
}
//
if UIDevice.current.userInterfaceIdiom == .pad {
//
// iPad
//
redeemButton.titleLabel?.font = UIFont(name: "PFSquareSansPro-Medium", size: 19)
//
redeemButton.widthAnchor.constraint(equalToConstant: 250).isActive = true
//
} else {
//
// not iPad (iPhone, mac, tv, carPlay, unspecified)
//
redeemButton.titleLabel?.font = UIFont(name: "PFSquareSansPro-Medium", size: 16)
//
redeemButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
//
}
termsButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
16
)
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
8b5d3a9
...
...
@@ -100,14 +100,16 @@ import SwiftEventBus
redeemButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
12.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
8
,
bottom
:
0
,
right
:
8
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
redeemButton
.
widthAnchor
.
constraint
(
equalToConstant
:
250
)
.
isActive
=
true
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
redeemButton
.
widthAnchor
.
constraint
(
equalTo
:
view
.
widthAnchor
,
multiplier
:
0.6
)
.
isActive
=
true
}
//
if UIDevice.current.userInterfaceIdiom == .pad {
//
// iPad
//
redeemButton.widthAnchor.constraint(equalToConstant: 250).isActive = true
//
} else {
//
// not iPad (iPhone, mac, tv, carPlay, unspecified)
//
redeemButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
//
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
8b5d3a9
...
...
@@ -93,14 +93,17 @@ import SwiftEventBus
activateButton
.
setTitleColor
(
.
white
,
for
:
.
normal
)
activateButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
activateButton
.
layer
.
cornerRadius
=
12.0
activateButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
activateButton
.
intrinsicContentSize
.
width
,
height
:
44
)
activateButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
8
,
bottom
:
0
,
right
:
8
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
activateButton
.
widthAnchor
.
constraint
(
equalToConstant
:
250
)
.
isActive
=
true
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
activateButton
.
widthAnchor
.
constraint
(
equalTo
:
view
.
widthAnchor
,
multiplier
:
0.6
)
.
isActive
=
true
}
//
if UIDevice.current.userInterfaceIdiom == .pad {
//
// iPad
//
activateButton.widthAnchor.constraint(equalToConstant: 250).isActive = true
//
} else {
//
// not iPad (iPhone, mac, tv, carPlay, unspecified)
//
activateButton.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.6).isActive = true
//
}
moreButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Regular"
,
size
:
16
)
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
...
...
Please
register
or
login
to post a comment