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-31 12:39:06 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e94e45bf824513a21b769e2b38cba173348df907
e94e45bf
1 parent
415fffa1
ui fixes v2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 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 @
e94e45b
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
e94e45b
...
...
@@ -66,7 +66,7 @@ import SwiftEventBus
couponImage
.
load
(
link
:
ccms
?
.
_imageUrl
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
couponImage
.
contentMode
=
.
scaleAspectFill
couponImageHeight
.
constant
=
253
// self.uiscreen.height * 0.25
couponImageHeight
.
constant
=
2
30
// 2
53 // self.uiscreen.height * 0.25
nameLabel
.
text
=
ccms
?
.
_title
??
""
descriptionLabel
.
text
=
ccms
?
.
_subtitle
??
""
...
...
@@ -77,7 +77,7 @@ import SwiftEventBus
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
8.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
16
,
bottom
:
0
,
right
:
16
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
// // iPad
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
e94e45b
...
...
@@ -95,7 +95,7 @@ import AVFoundation
couponImage
.
load
(
link
:
couponSetData
?
.
img_preview
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
couponImage
.
contentMode
=
.
scaleAspectFill
couponImageHeight
.
constant
=
253
// self.uiscreen.height * 0.25
couponImageHeight
.
constant
=
2
30
// 2
53 // self.uiscreen.height * 0.25
nameLabel
.
text
=
couponSetData
?
.
name
??
""
discriptionLabel
.
text
=
couponSetData
?
.
short_description
??
""
...
...
@@ -162,7 +162,7 @@ import AVFoundation
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
8.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
16
,
bottom
:
0
,
right
:
16
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
// // iPad
...
...
@@ -178,7 +178,7 @@ import AVFoundation
mapButton
.
backgroundColor
=
UIColor
(
red
:
0.90
,
green
:
0.90
,
blue
:
0.90
,
alpha
:
1.00
)
mapButton
.
layer
.
cornerRadius
=
8.0
mapButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
mapButton
.
intrinsicContentSize
.
width
,
height
:
44
)
mapButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
16
,
bottom
:
0
,
right
:
16
)
mapButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
// mapButton.isHidden = true
// mapButtonHeight.constant = 0
...
...
@@ -191,7 +191,7 @@ import AVFoundation
// if (merchant._show_map == true) {
// mapButton.setTitle("Δες τα καταστήματα", for: .normal)
// mapButton.frame = CGRect(x: 0.0, y: 0.0, width: mapButton.intrinsicContentSize.width, height: 44)
// mapButton.contentEdgeInsets = UIEdgeInsets(top:
0
, left: 16, bottom: 0, right: 16)
// mapButton.contentEdgeInsets = UIEdgeInsets(top:
1
, left: 16, bottom: 0, right: 16)
// mapButton.isHidden = false
// mapBtnVisible = true
// eshopBtnVisible = false
...
...
@@ -200,7 +200,7 @@ import AVFoundation
// } else if (merchant._eshop == true) {
// mapButton.setTitle("Δες το eshop", for: .normal)
// mapButton.frame = CGRect(x: 0.0, y: 0.0, width: mapButton.intrinsicContentSize.width, height: 44)
// mapButton.contentEdgeInsets = UIEdgeInsets(top:
0
, left: 16, bottom: 0, right: 16)
// mapButton.contentEdgeInsets = UIEdgeInsets(top:
1
, left: 16, bottom: 0, right: 16)
// mapButton.isHidden = false
// mapBtnVisible = false
// eshopBtnVisible = true
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
e94e45b
...
...
@@ -72,7 +72,7 @@ import SwiftEventBus
couponImage
.
load
(
link
:
couponset
?
.
img_preview
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
couponImage
.
contentMode
=
.
scaleAspectFill
couponImageHeight
.
constant
=
253
// self.uiscreen.height * 0.25
couponImageHeight
.
constant
=
2
30
// 2
53 // self.uiscreen.height * 0.25
nameLabel
.
text
=
couponset
?
.
name
??
""
let
htmlDescrText
=
couponset
?
.
description
??
""
...
...
@@ -83,7 +83,7 @@ import SwiftEventBus
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
8.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
16
,
bottom
:
0
,
right
:
16
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
e94e45b
...
...
@@ -81,7 +81,7 @@ import SwiftEventBus
couponImage
.
load
(
link
:
couponSetData
?
.
img_preview
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
couponImage
.
contentMode
=
.
scaleAspectFill
couponImageHeight
.
constant
=
253
// self.uiscreen.height * 0.25
couponImageHeight
.
constant
=
2
30
// 2
53 // self.uiscreen.height * 0.25
nameLabel
.
text
=
couponSetData
?
.
name
??
""
// descriptionLabel.text = couponSetData?.short_description ?? ""
...
...
@@ -104,7 +104,7 @@ import SwiftEventBus
redeemButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
redeemButton
.
layer
.
cornerRadius
=
8.0
redeemButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
redeemButton
.
intrinsicContentSize
.
width
,
height
:
44
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
16
,
bottom
:
0
,
right
:
16
)
redeemButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
// // iPad
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
e94e45b
...
...
@@ -77,7 +77,7 @@ import SwiftEventBus
heroImage
.
load
(
link
:
ccms
?
.
_imageOfferUrl
??
""
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
heroImage
.
contentMode
=
.
scaleAspectFill
heroImageHeight
.
constant
=
self
.
uiscreen
.
height
*
0.25
heroImageHeight
.
constant
=
230
// 253 //
self.uiscreen.height * 0.25
nameLabel
.
text
=
ccms
?
.
_description
??
""
// descriptionLabel.text = ccms?._subtitle ?? ""
...
...
@@ -97,7 +97,7 @@ import SwiftEventBus
activateButton
.
backgroundColor
=
UIColor
(
red
:
0.47
,
green
:
0.75
,
blue
:
0.08
,
alpha
:
1.00
)
activateButton
.
layer
.
cornerRadius
=
8.0
activateButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
activateButton
.
intrinsicContentSize
.
width
,
height
:
44
)
activateButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
16
,
bottom
:
0
,
right
:
16
)
activateButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
1
,
left
:
16
,
bottom
:
0
,
right
:
16
)
// Fix width for ipad
// if UIDevice.current.userInterfaceIdiom == .pad {
...
...
Please
register
or
login
to post a comment