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
2025-01-16 12:39:37 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a33539359b281c6885f6c4726aef2b3c7659a73e
a3353935
1 parent
b0518c67
fix MarketPassViewController mapButtonAction
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/MarketPassViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/MarketPassViewController.swift
View file @
a335393
...
...
@@ -191,10 +191,7 @@ import AVFoundation
// MARK: - Actions
@IBAction
func
mapButtonAction
(
_
sender
:
Any
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as!
SwiftWarplyFramework
.
CampaignViewController
vc
.
campaignUrl
=
swiftApi
()
.
getMarketPassMapUrl
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
swiftApi
()
.
openSupermarketMap
(
self
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
a335393
...
...
@@ -9366,4 +9366,22 @@ public class swiftApi {
}
}
public
func
openSupermarketMap
(
_
controller
:
UIViewController
)
->
Void
{
let
status
=
swiftApi
()
.
getNetworkStatus
()
if
(
status
==
-
1
||
status
==
0
)
{
swiftApi
()
.
showDialog
(
controller
,
"Δεν υπάρχει σύνδεση"
,
"Αυτή τη στιγμή βρίσκεσαι εκτός σύνδεσης. Παρακαλούμε βεβαιώσου ότι είσαι συνδεδεμένος στο διαδίκτυο και προσπάθησε ξανά."
)
}
else
{
let
tempCampaign
=
CampaignItemModel
()
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as!
SwiftWarplyFramework
.
CampaignViewController
let
url
=
swiftApi
()
.
getMarketPassMapUrl
()
let
params
=
swiftApi
()
.
constructCampaignParams
(
tempCampaign
)
vc
.
campaignUrl
=
url
vc
.
params
=
params
vc
.
showHeader
=
false
controller
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
}
...
...
Please
register
or
login
to post a comment