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-08-31 11:44:40 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
192a1e892d1a89f7624e4229dc1dedfcf6c60d46
192a1e89
1 parent
65500ce4
dfyCoupon Banner test v2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
192a1e8
...
...
@@ -112,15 +112,15 @@ import SwiftEventBus
var
totalCouponValue
=
swiftApi
()
.
getDealsCouponsSum
()
//
if (totalCouponValue == 0.0) {
//
dfyEarnBannerView.isHidden = true
//
dfyEarnBannerHeight.constant = 0
//
dfyEarnBannerTopSpace.constant = 0
//
} else {
if
(
totalCouponValue
==
0.0
)
{
dfyEarnBannerView
.
isHidden
=
true
dfyEarnBannerHeight
.
constant
=
0
dfyEarnBannerTopSpace
.
constant
=
0
}
else
{
dfyEarnBannerView
.
isHidden
=
false
dfyEarnBannerHeight
.
constant
=
75
dfyEarnBannerTopSpace
.
constant
=
30
//
}
}
totalCouponValue
=
Float
(
round
(
100
*
totalCouponValue
)
/
100
)
var
totalCouponValueString
=
"0"
...
...
Please
register
or
login
to post a comment