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-10-27 12:51:47 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da74df95b3d3163b3848d930b91e6aa455a9e5ae
da74df95
1 parent
fec7adf1
feedback changes
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/LoyaltyHistoryViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
da74df9
...
...
@@ -23,7 +23,7 @@ import SwiftEventBus
getCouponsRequest
()
setBackButton
()
setNavigationTitle
(
"
Ενεργά κουπόνια
"
)
setNavigationTitle
(
"
GIFTS FOR YOU
"
)
// backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/LoyaltyHistoryViewController.swift
View file @
da74df9
...
...
@@ -296,8 +296,8 @@ import SwiftEventBus
// MARK: - Actions
@IBAction
func
dfyBannerButtonAction
(
_
sender
:
Any
)
{
var
totalCouponValue
=
swiftApi
()
.
getDealsCouponsSum
()
if
(
totalCouponValue
>
0.0
)
{
//
var totalCouponValue = swiftApi().getDealsCouponsSum()
//
if (totalCouponValue > 0.0) {
print
(
"DFY coupon banner pressed!"
)
// analysis_pressed event
let
dealsAnalysis
=
swiftApi
.
WarplyDealsAnalysisEventModel
()
...
...
@@ -315,11 +315,11 @@ import SwiftEventBus
SwiftEventBus
.
post
(
"firebase"
,
sender
:
firebaseEvent
)
swiftApi
()
.
logTrackersEvent
(
"click"
,
(
"LoyaltyHistoryScreen:"
+
"DealsBanner"
))
}
//
}
}
@IBAction
func
gfyBannerButtonAction
(
_
sender
:
Any
)
{
if
(
loyaltyBadge
.
_couponCount
>
0
)
{
//
if (loyaltyBadge._couponCount > 0) {
// let firebaseEvent = swiftApi.LoyaltySDKFirebaseEventModel()
// firebaseEvent._eventName = "did_tap_deals_for_you_badge"
// firebaseEvent.setParameter = ("screen", "Loyalty History")
...
...
@@ -335,11 +335,11 @@ import SwiftEventBus
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"LoyaltyAnalysisViewController"
)
as!
SwiftWarplyFramework
.
LoyaltyAnalysisViewController
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//
}
}
@IBAction
func
marketBannerButtonAction
(
_
sender
:
Any
)
{
if
(
self
.
unifiedCouponsDiscount
>
0.0
)
{
//
if (self.unifiedCouponsDiscount > 0.0) {
let
firebaseEvent
=
swiftApi
.
LoyaltySDKFirebaseEventModel
()
firebaseEvent
.
_eventName
=
"did_tap_market_badge"
firebaseEvent
.
setParameter
=
(
"screen"
,
"Loyalty History"
)
...
...
@@ -350,6 +350,6 @@ import SwiftEventBus
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"MarketLoyaltyAnalysisViewController"
)
as!
SwiftWarplyFramework
.
MarketLoyaltyAnalysisViewController
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//
}
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
da74df9
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
da74df9
...
...
@@ -120,9 +120,9 @@ extension UIViewController {
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
if
(
fontWeight
==
"bold"
)
{
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
1
8
)
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
1
9
)
}
else
{
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
1
8
)
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
1
9
)
}
}
titleLabel
.
adjustsFontSizeToFitWidth
=
true
...
...
Please
register
or
login
to post a comment