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-14 17:55:56 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b03aacfbae1b11a151daae3c55b751d1dd46a85d
b03aacfb
1 parent
c23ecfd0
fix sharing success popup buttons
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
b03aacf
...
...
@@ -3003,23 +3003,27 @@ public class swiftApi {
func
initialSharingDialog
(
_
controller
:
UIViewController
,
_
alertTitle
:
String
,
_
sharingId
:
String
)
->
Void
{
let
alert
=
UIAlertController
(
title
:
"Συγχαρητήρια!"
,
message
:
alertTitle
,
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
.
cosmoteRetrieveSharingAsync
(
sharingId
:
sharingId
,
accept
:
true
,
retrieveSharingCallback
)
self
.
rejectSharingDialog
(
controller
,
sharingId
)
case
.
cancel
:
print
(
"cancel"
)
case
.
destructive
:
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
:
self
.
rejectSharingDialog
(
controller
,
sharingId
)
self
.
cosmoteRetrieveSharingAsync
(
sharingId
:
sharingId
,
accept
:
true
,
retrieveSharingCallback
)
case
.
cancel
:
print
(
"cancel"
)
...
...
@@ -3029,6 +3033,7 @@ public class swiftApi {
}
}))
controller
.
present
(
alert
,
animated
:
true
,
completion
:
nil
)
...
...
Please
register
or
login
to post a comment