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 13:46:00 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8e00f34fe7f0313e6f687a347dddef063e432025
8e00f34f
1 parent
cec3efb4
nonTelco popup in wallet
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
8e00f34
...
...
@@ -58,6 +58,10 @@ import SwiftEventBus
tableView
.
dataSource
=
self
print
(
"Active Gifts Count: "
+
String
(
coupons
.
count
))
if
((
profile
!=
nil
)
&&
(
profile
?
.
_nonTelco
==
true
))
{
showDialog
(
""
,
"Παρακαλούμε πολύ πρόσθεσε τις συνδέσεις σου στην COSMOTE για να έχεις πρόσβαση στα προνόμια του νέου Loyalty προγράμματος της COSMOTE!"
);
}
headerImage
.
image
=
UIImage
(
named
:
"ic_background_circle"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
)
dfyEarnImage
.
image
=
UIImage
(
named
:
"wallet_dfy_earn"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
)
...
...
@@ -330,6 +334,27 @@ import SwiftEventBus
}
}
}
// MARK: - Functions
func
showDialog
(
_
alertTitle
:
String
,
_
alertSubTitle
:
String
)
->
Void
{
let
alert
=
UIAlertController
(
title
:
alertTitle
,
message
:
alertSubTitle
,
preferredStyle
:
.
alert
)
alert
.
addAction
(
UIAlertAction
(
title
:
"OK"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
.
dismiss
(
animated
:
true
,
completion
:
{})
case
.
cancel
:
print
(
"cancel"
)
case
.
destructive
:
print
(
"destructive"
)
}
}))
self
.
present
(
alert
,
animated
:
true
,
completion
:
nil
)
}
// MARK: - Actions
@IBAction
func
qustionnaireButtonAction
(
_
sender
:
Any
)
{
...
...
Please
register
or
login
to post a comment