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-05-04 12:28:17 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6571e2eea479e8fea01dce7b722327b3dae5c74e
6571e2ee
1 parent
bae6d3c4
GFY, Wallet ui fixes
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
3 deletions
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletBannersTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
6571e2e
...
...
@@ -7,7 +7,7 @@
<key>
Pods-SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
<integer>
1
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
6571e2e
...
...
@@ -7,7 +7,7 @@
<key>
SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
</integer>
<integer>
0
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
6571e2e
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
6571e2e
...
...
@@ -63,7 +63,7 @@ import SwiftEventBus
// tableView.clipsToBounds = true
// tableView.layer.cornerRadius = 30
// tableView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius
tableView
.
contentInset
.
top
=
50
tableView
.
contentInset
.
top
=
25
// Add Top left corner radius
// mainView.clipsToBounds = true
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletBannersTableViewCell.swift
View file @
6571e2e
...
...
@@ -168,6 +168,13 @@ import UIKit
sumRewardsString
=
String
(
format
:
"%.2f"
,
sumRewards
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
sumBadgeLabel
.
text
=
sumRewardsString
+
"€"
let
sumRewardsIntCount
=
String
(
Int
(
sumRewards
))
.
count
if
(
sumRewardsIntCount
>=
3
)
{
sumBadgeLabel
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
11
)
}
else
{
sumBadgeLabel
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
13
)
}
let
sumNormalText1
=
"Μέχρι τώρα έχεις κερδίσει "
let
sumBoldText
=
sumRewardsString
+
"€"
let
sumNormalText2
=
" στο For You!"
...
...
@@ -190,6 +197,13 @@ import UIKit
totalCouponValueString
=
String
(
format
:
"%.2f"
,
totalCouponValueFixed
)
.
replacingOccurrences
(
of
:
"."
,
with
:
","
,
options
:
.
literal
,
range
:
nil
)
dfyBadgeLabel
.
text
=
totalCouponValueString
+
"€"
// let totalCouponValueIntCount = String(Int(totalCouponValueFixed)).count
// if (totalCouponValueIntCount >= 3) {
// dfyBadgeLabel.font = UIFont(name: "PeridotPE-Bold", size: 9)
// } else {
// dfyBadgeLabel.font = UIFont(name: "PeridotPE-Bold", size: 11)
// }
let
dfyNormalText1
=
"Έχεις κερδίσει "
let
dfyBoldText
=
totalCouponValueString
+
"€"
let
dfyNormalText2
=
" με το DEALS for YOU!"
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
6571e2e
...
...
@@ -226,6 +226,13 @@ import SwiftEventBus
dfyEarnAmountLabel
.
text
=
totalCouponValueString
+
"€"
// dfyEarnAmountLabel.font = UIFont(name: "PeridotPE-Bold", size: 14)
let
totalCouponValueIntCount
=
String
(
Int
(
totalCouponValue
))
.
count
if
(
totalCouponValueIntCount
>=
3
)
{
dfyEarnAmountLabel
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
11
)
}
else
{
dfyEarnAmountLabel
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
13
)
}
if
(
loyaltyBadge
.
_couponCount
==
0
)
{
couponEarnView
.
isHidden
=
true
...
...
@@ -278,6 +285,13 @@ import SwiftEventBus
couponEarnLabel
.
attributedText
=
coupAttributedString
couponEarnAmountLabel
.
text
=
totalCouponDiscountString
+
"€"
let
totalCouponDiscountIntCount
=
String
(
Int
(
totalCouponDiscount
))
.
count
if
(
totalCouponDiscountIntCount
>=
3
)
{
couponEarnAmountLabel
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
11
)
}
else
{
couponEarnAmountLabel
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
13
)
}
print
(
"Loyalty Badge Value: "
+
totalCouponDiscountString
)
print
(
"Loyalty Badge Count: "
+
String
(
loyaltyBadge
.
_couponCount
))
...
...
Please
register
or
login
to post a comment