Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to edit array values in a Swiftui app #39

Open
Dragol1994 opened this issue Oct 30, 2024 · 1 comment
Open

No way to edit array values in a Swiftui app #39

Dragol1994 opened this issue Oct 30, 2024 · 1 comment

Comments

@Dragol1994
Copy link

Is there no way to only update legs[0].OFP.offBlockTime? But still keep the other legs (so no map?)

{
"ETD": {
"__type": "date_epoch_timestamp",
"__value": 1730286000
},
"_id": "37CD3DA2-66C6-4103-85E2-98BC9D54AE02",
"createdAt": {
"__type": "date_epoch_timestamp",
"__value": 1730279646.443524
},
"isDeleted": false,
"legs": [
{
"ETA": null,
"ETD": null,
"ETE": 54.302661634271985,
"OFP": {
"landingTime": null,
"offBlockTime": null,
"onBlockTime": null,
"shutdownTime": null,
"startupTime": null,
"takeoffTime": null
},
"altitude": 2000,
"distance": 101.43430233497686,
"from": "663fc0e907f17722e05e6ec3",
"groundSpeed": 112.09433495819437,
"id": "FAFBCDC0-4349-426B-ACF2-0C5928CF5C43",
"revisedETA": {
"__type": "date_epoch_timestamp",
"__value": 1730289258.159698
},
"revisedETD": {
"__type": "date_epoch_timestamp",
"__value": 1730286000
},
"to": "6704fd9d79d006a8a3625e83",
"trueTrack": 284.90144354896887
},
{
"ETA": null,
"ETD": null,
"ETE": 39.16205445895643,
"OFP": {
"landingTime": null,
"offBlockTime": null,
"onBlockTime": null,
"shutdownTime": null,
"startupTime": null,
"takeoffTime": null
},
"altitude": 3000,
"distance": 101.43430233497688,
"from": "6704fd9d79d006a8a3625e83",
"groundSpeed": 155.4252511802968,
"id": "F0DB7963-BB42-4D6D-BBCB-FC7E68D1BFA1",
"revisedETA": {
"__type": "date_epoch_timestamp",
"__value": 1730292207.8829656
},
"revisedETD": {
"__type": "date_epoch_timestamp",
"__value": 1730289858.159698
},
"to": "663fc0e907f17722e05e6ec3",
"trueTrack": 102.16941182301154
}
],
"routeIDs": [
"663fc0e907f17722e05e6ec3",
"6704fd9d79d006a8a3625e83",
"663fc0e907f17722e05e6ec3"
]
}

@bplattenburg
Copy link
Member

Hi @Dragol1994 ,

If you're running into an issue using the Ditto Swift SDK, please email our support mailbox [email protected] and we'll be happy to help!

Thanks,
Brian Plattenburg
Lead Customer Engineer @ Ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants