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-09-30 11:30:17 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
75f282639cb703eb9823138af92c04ea96ac09de
75f28263
1 parent
961693e9
Added ShareVC popup back action
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
75f2826
...
...
@@ -185,6 +185,26 @@ import SwiftEventBus
self
.
present
(
alert
,
animated
:
true
,
completion
:
nil
)
}
func
showDialogWithBack
(
_
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
)
}
func
showSuccessDialog
(
_
alertTitle
:
String
,
_
alertSubTitle
:
String
)
->
Void
{
let
alert
=
UIAlertController
(
title
:
alertTitle
,
message
:
alertSubTitle
,
preferredStyle
:
.
alert
)
...
...
@@ -273,7 +293,7 @@ import SwiftEventBus
extension
ShareViewController
:
NumbersPopupDelegate
{
@objc
func
numbersPopupTapped
(
_
sender
:
Any
)
{
if
(
self
.
numbersList
.
count
==
0
)
{
self
.
showDialog
(
"Κάνε δώρο"
,
"Για την αποστολή του δώρου σου χρειάζεται να έχεις κινητό COSMOTE."
)
self
.
showDialog
WithBack
(
"Κάνε δώρο"
,
"Για την αποστολή του δώρου σου χρειάζεται να έχεις κινητό COSMOTE."
)
}
else
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
// self.storyboard?
...
...
Please
register
or
login
to post a comment