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-12 15:08:01 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b5d8d492a3999af5cf1d8918aca8818a69bdd6b
5b5d8d49
1 parent
f6ec1cc8
fix share popup
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ShareViewController.swift
View file @
5b5d8d4
...
...
@@ -118,10 +118,10 @@ import SwiftEventBus
func
showSendDialog
()
->
Void
{
let
alert
=
UIAlertController
(
title
:
"Στείλε δώρο"
,
message
:
"Είσαι σίγουρος ότι θέλεις να κάνεις δώρο το κουπόνι σου;"
,
preferredStyle
:
.
alert
)
alert
.
addAction
(
UIAlertAction
(
title
:
"Αποστολή
"
,
style
:
.
default
,
handler
:
{
action
in
let
cancelButton
=
UIAlertAction
(
title
:
"Άκυρο
"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
self
.
cosmoteCouponSharingRequest
(
)
print
(
"default"
)
case
.
cancel
:
print
(
"cancel"
)
...
...
@@ -130,11 +130,14 @@ import SwiftEventBus
print
(
"destructive"
)
}
}))
alert
.
addAction
(
UIAlertAction
(
title
:
"Άκυρο"
,
style
:
.
default
,
handler
:
{
action
in
})
cancelButton
.
setValue
(
UIColor
(
rgb
:
0xFC5757
),
forKey
:
"titleTextColor"
)
alert
.
addAction
(
cancelButton
)
alert
.
addAction
(
UIAlertAction
(
title
:
"Αποστολή"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
print
(
"default"
)
self
.
cosmoteCouponSharingRequest
(
)
case
.
cancel
:
print
(
"cancel"
)
...
...
Please
register
or
login
to post a comment