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 18:10:20 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b048d346c9145adb1dd75781b54f377b043fa9a3
b048d346
1 parent
0f9476a8
fix pacing goal reached popup
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b048d34
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
b048d34
...
...
@@ -3987,7 +3987,7 @@ public class swiftApi {
}
}
public
var
_msg
:
Bool
{
public
var
_msg
:
String
{
get
{
// getter
return
self
.
msg
}
...
...
@@ -4181,8 +4181,9 @@ public class swiftApi {
let
tempPacingDetails
=
PacingDetails
(
dictionary
:
pacingDataResult
)
if
(
tempPacingDetails
.
_meters
.
_month
.
_value
>=
tempPacingDetails
.
_meters
.
_month
.
_goal
)
{
self
.
pacingGoalDialog
(
controller
)
// if (tempPacingDetails._meters._month._value >= tempPacingDetails._meters._month._goal) {
if
(
tempPacingDetails
.
_goal_reached
==
true
)
{
self
.
pacingGoalDialog
(
controller
,
tempPacingDetails
.
_msg
)
}
getPacingDetailsCallback
(
tempPacingDetails
);
...
...
@@ -4201,9 +4202,9 @@ public class swiftApi {
}
func
pacingGoalDialog
(
_
controller
:
UIViewController
)
->
Void
{
func
pacingGoalDialog
(
_
controller
:
UIViewController
,
_
alertTitle
:
String
)
->
Void
{
let
alert
=
UIAlertController
(
title
:
"Συγχαρητήρια!"
,
message
:
"Πέτυχες το στόχο του μήνα! Διάλεξε το δώρο που επιθυμείς να ενεργοποιήσεις!"
,
preferredStyle
:
.
alert
)
let
alert
=
UIAlertController
(
title
:
"Συγχαρητήρια!"
,
message
:
alertTitle
,
preferredStyle
:
.
alert
)
alert
.
addAction
(
UIAlertAction
(
title
:
"OK"
,
style
:
.
default
,
handler
:
{
action
in
switch
action
.
style
{
case
.
default
:
...
...
Please
register
or
login
to post a comment