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-11 11:08:43 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fc026813531c690ad230380a0ca2164e4c1f6979
fc026813
1 parent
59d7c21f
Fix button width for ipad
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
fc02681
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
fc02681
...
...
@@ -72,6 +72,14 @@ 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
// 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
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
fc02681
...
...
@@ -118,12 +118,28 @@ 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
// 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
}
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
// 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
}
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 @
fc02681
...
...
@@ -79,6 +79,14 @@ 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
// 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
}
termsButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
16
)
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
fc02681
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
fc02681
...
...
@@ -99,6 +99,14 @@ 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
// 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
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
fc02681
...
...
@@ -92,6 +92,14 @@ 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
// 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
}
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