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
2023-04-11 14:33:52 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1a88021b842c814cbee356a7863ac9cdc06b3d85
1a88021b
1 parent
dda7a459
replace with new assets
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
36 additions
and
36 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/InboxTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/MFYInboxTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/MapsViewController.xib
SwiftWarplyFramework/SwiftWarplyFramework/NumberPopupViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBCFooterTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBCHeaderTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1a88021
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
1a88021
...
...
@@ -185,7 +185,7 @@ import AVFoundation
showBarcodeButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
16
)
showBarcodeButton
.
setTitle
(
"Εμφάνιση barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
semanticContentAttribute
=
.
forceRightToLeft
showBarcodeButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
showBarcodeButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -269,7 +269,7 @@ import AVFoundation
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
termsButton
.
setTitle
(
"Όροι χρήσης"
,
for
:
.
normal
)
termsButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
semanticContentAttribute
=
.
forceRightToLeft
termsButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
termsButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -322,12 +322,12 @@ import AVFoundation
let
targetSize
=
CGSize
(
width
:
termsTextView
.
frame
.
width
,
height
:
CGFloat
(
MAXFLOAT
))
termsTextViewHeight
.
constant
=
termsTextView
.
sizeThatFits
(
targetSize
)
.
height
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
@@ -352,7 +352,7 @@ import AVFoundation
border2TopSpace
.
constant
=
CGFloat
(
15
)
// 15
showBarcodeButton
.
setTitle
(
"Απόκρυψη barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
barcodeImage
.
isHidden
=
true
...
...
@@ -369,7 +369,7 @@ import AVFoundation
border2TopSpace
.
constant
=
CGFloat
(
0
)
// 15
showBarcodeButton
.
setTitle
(
"Εμφάνιση barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
1a88021
...
...
@@ -116,7 +116,7 @@ import SwiftEventBus
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
termsButton
.
setTitle
(
"Όροι χρήσης"
,
for
:
.
normal
)
termsButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
semanticContentAttribute
=
.
forceRightToLeft
termsButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
termsButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -179,12 +179,12 @@ import SwiftEventBus
let
targetSize
=
CGSize
(
width
:
termsTextView
.
frame
.
width
,
height
:
CGFloat
(
MAXFLOAT
))
termsTextViewHeight
.
constant
=
termsTextView
.
sizeThatFits
(
targetSize
)
.
height
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/InboxTableViewCell.swift
View file @
1a88021
...
...
@@ -41,7 +41,7 @@ import UIKit
inboxView
.
layer
.
shadowRadius
=
15.0
inboxView
.
clipsToBounds
=
true
newBadgeImage
.
image
=
UIImage
(
named
:
"new_icon"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
newBadgeImage
.
image
=
UIImage
(
named
:
"new_icon
_2
"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
newBadgeImage
.
isHidden
=
true
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MFYInboxTableViewCell.swift
View file @
1a88021
...
...
@@ -40,7 +40,7 @@ import UIKit
inboxView
.
layer
.
cornerRadius
=
5.0
inboxView
.
clipsToBounds
=
true
newBadgeImage
.
image
=
UIImage
(
named
:
"new_icon"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
newBadgeImage
.
image
=
UIImage
(
named
:
"new_icon
_2
"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
curvedBgImage
.
image
=
UIImage
(
named
:
"curved_bg_white"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
newBadgeImage
.
isHidden
=
true
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MapsViewController.xib
View file @
1a88021
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/NumberPopupViewController.swift
View file @
1a88021
...
...
@@ -76,7 +76,7 @@ protocol NumbersPopupDelegate {
self
.
preferredContentSize
=
CGSize
(
width
:
widthPopup
,
height
:
heightPopup
)
closeButton
.
setImage
(
UIImage
(
named
:
"ic_close_
2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
closeButton
.
setImage
(
UIImage
(
named
:
"ic_close_
3
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
closeButton
.
imageView
?
.
layer
.
transform
=
CATransform3DMakeScale
(
1.5
,
1.5
,
1.5
)
// self.tableView.reloadData()
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
1a88021
...
...
@@ -88,7 +88,7 @@ import SwiftEventBus
descriptionLabel
.
text
=
"Επίλεξε το κινητό από το οποίο θα γίνει η αποστολή και συμπλήρωσε το COSMOTE κινητό που θα λάβει το δώρο."
senderLabel
.
text
=
"Αποστολέας"
senderArrowImage
.
image
=
UIImage
(
named
:
"ic_down_dark"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
senderArrowImage
.
image
=
UIImage
(
named
:
"ic_down_dark
_2
"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
senderButton
.
addTarget
(
self
,
action
:
#selector(
self.numbersPopupTapped(_:)
)
,
for
:
.
touchUpInside
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
1a88021
...
...
@@ -49,7 +49,7 @@ import SwiftEventBus
numbersList
=
ccms
?
.
_eligibleAssets
??
[]
setBackButton
(
"ic_close_
2
"
)
setBackButton
(
"ic_close_
3
"
)
setNavigationTitle
(
ccms
?
.
_titleOffer
??
""
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
...
...
@@ -112,7 +112,7 @@ import SwiftEventBus
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
moreButton
.
setTitle
(
"Δες Περισσότερα"
,
for
:
.
normal
)
moreButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
moreButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
moreButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
moreButton
.
semanticContentAttribute
=
.
forceRightToLeft
moreButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
moreButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -144,12 +144,12 @@ import SwiftEventBus
let
targetSize
=
CGSize
(
width
:
moreTextView
.
frame
.
width
,
height
:
CGFloat
(
MAXFLOAT
))
moreTextViewHeight
.
constant
=
moreTextView
.
sizeThatFits
(
targetSize
)
.
height
moreButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
moreButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
moreTextView
.
isHidden
=
true
moreTextViewHeight
.
constant
=
CGFloat
(
0
)
moreButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
moreButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBCFooterTableViewCell.swift
View file @
1a88021
...
...
@@ -83,7 +83,7 @@ import AVFoundation
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
termsButton
.
setTitle
(
"Όροι χρήσης"
,
for
:
.
normal
)
termsButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
semanticContentAttribute
=
.
forceRightToLeft
termsButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
termsButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -127,12 +127,12 @@ import AVFoundation
let
targetSize
=
CGSize
(
width
:
termsTextView
.
frame
.
width
,
height
:
CGFloat
(
MAXFLOAT
))
termsTextViewHeight
.
constant
=
termsTextView
.
sizeThatFits
(
targetSize
)
.
height
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBCHeaderTableViewCell.swift
View file @
1a88021
...
...
@@ -93,7 +93,7 @@ import AVFoundation
showBarcodeButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
16
)
showBarcodeButton
.
setTitle
(
"Εμφάνιση barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
semanticContentAttribute
=
.
forceRightToLeft
showBarcodeButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
showBarcodeButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -104,7 +104,7 @@ import AVFoundation
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
showCouponsButton
.
setTitle
(
"Εμφάνιση κουπονιών"
,
for
:
.
normal
)
showCouponsButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showCouponsButton
.
semanticContentAttribute
=
.
forceRightToLeft
showCouponsButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
showCouponsButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -240,7 +240,7 @@ import AVFoundation
border2TopSpace
.
constant
=
CGFloat
(
15
)
// 15
showBarcodeButton
.
setTitle
(
"Απόκρυψη barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
barcodeImage
.
isHidden
=
true
...
...
@@ -257,15 +257,15 @@ import AVFoundation
border2TopSpace
.
constant
=
CGFloat
(
0
)
// 15
showBarcodeButton
.
setTitle
(
"Εμφάνιση barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
func
toggleCoupons
(
couponsVisible
:
Bool
)
{
if
(
couponsVisible
)
{
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBarcodeViewController.swift
View file @
1a88021
...
...
@@ -217,7 +217,7 @@ extension UITableView {
showBarcodeButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PFSquareSansPro-Medium"
,
size
:
16
)
showBarcodeButton
.
setTitle
(
"Εμφάνιση barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
semanticContentAttribute
=
.
forceRightToLeft
showBarcodeButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
showBarcodeButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -289,7 +289,7 @@ extension UITableView {
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
showCouponsButton
.
setTitle
(
"Εμφάνιση κουπονιών"
,
for
:
.
normal
)
showCouponsButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showCouponsButton
.
semanticContentAttribute
=
.
forceRightToLeft
showCouponsButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
showCouponsButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -309,7 +309,7 @@ extension UITableView {
// termsButton.imageView?.layer.transform = CATransform3DMakeScale(1.5, 1.5, 1.5)
termsButton
.
setTitle
(
"Όροι χρήσης"
,
for
:
.
normal
)
termsButton
.
setTitleColor
(
UIColor
(
red
:
0.25
,
green
:
0.33
,
blue
:
0.39
,
alpha
:
1.00
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
semanticContentAttribute
=
.
forceRightToLeft
termsButton
.
tintColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
termsButton
.
imageEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
);
...
...
@@ -362,12 +362,12 @@ extension UITableView {
let
targetSize
=
CGSize
(
width
:
termsTextView
.
frame
.
width
,
height
:
CGFloat
(
MAXFLOAT
))
termsTextViewHeight
.
constant
=
termsTextView
.
sizeThatFits
(
targetSize
)
.
height
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
@@ -392,7 +392,7 @@ extension UITableView {
border2TopSpace
.
constant
=
CGFloat
(
15
)
// 15
showBarcodeButton
.
setTitle
(
"Απόκρυψη barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
barcodeImage
.
isHidden
=
true
...
...
@@ -409,7 +409,7 @@ extension UITableView {
border2TopSpace
.
constant
=
CGFloat
(
0
)
// 15
showBarcodeButton
.
setTitle
(
"Εμφάνιση barcode"
,
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showBarcodeButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
@@ -421,12 +421,12 @@ extension UITableView {
// tableViewHeight.constant = tableView.intrinsicContentSize.height
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
tableView
.
isHidden
=
true
tableViewHeight
.
constant
=
CGFloat
(
0
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
showCouponsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark
_2
.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
}
// scrollView.contentSize = CGSizeMake(scrollView.frame.size.width, scrollView.intrinsicContentSize.height);
// self.view.layoutIfNeeded()
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
1a88021
...
...
@@ -8,7 +8,7 @@
import
UIKit
extension
UIViewController
{
func
setBackButton
(
_
icon
:
String
=
"ic_back_
2
"
)
{
func
setBackButton
(
_
icon
:
String
=
"ic_back_
3
"
)
{
// let uiscreen: CGRect = UIScreen.main.bounds
// let backButton = UIButton(type: UIButton.ButtonType.custom) as UIButton
...
...
Please
register
or
login
to post a comment