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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
b03aacf
...
...
@@ -3003,10 +3003,11 @@ 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"
)
...
...
@@ -3015,11 +3016,14 @@ public class swiftApi {
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