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-26 17:05:15 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
efb9a36fc89021d7aec2350f986933d5929b3136
efb9a36f
1 parent
db89a501
walletVC spinner - empty view fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
efb9a36
...
...
@@ -735,19 +735,15 @@ import SwiftEventBus
func
handleSpinnerAndEmptyView
()
{
if
(
swiftApi
()
.
getShowVouchersBanner
()
==
""
)
{
self
.
emptyView
.
isHidden
=
true
self
.
emptyViewHeight
.
constant
=
0
self
.
showSpinner
=
true
if
(
self
.
dfyCoupons
.
count
==
0
&&
self
.
unifiedCoupons
.
count
==
0
&&
self
.
coupons
.
count
==
0
)
{
self
.
showSpinner
=
false
self
.
showActiveCouponsBanners
=
false
self
.
emptyView
.
isHidden
=
false
self
.
emptyViewHeight
.
constant
=
self
.
emptyView
.
intrinsicContentSize
.
height
}
else
{
self
.
emptyView
.
isHidden
=
true
self
.
emptyViewHeight
.
constant
=
0
self
.
showActiveCouponsBanners
=
true
}
...
...
@@ -1215,6 +1211,9 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
// if (swiftApi().getShowVouchersBanner() == "true") {
// let view = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.width, height: 70))
// view.backgroundColor = .clear
// let separatorView = UIView(frame: CGRect(x: 20, y: 25, width: tableView.frame.width - 40, height: 1))
// separatorView.backgroundColor = UIColor(red: 0.62, green: 0.62, blue: 0.61, alpha: 1.00)
//
// let titleLabel = UILabel(frame: CGRect(x: 20, y: 20, width: view.frame.width - 40, height: 25))
// titleLabel.font = UIFont(name: "PeridotPE-SBold", size: 21)
...
...
Please
register
or
login
to post a comment