From a friend on stackoverflow you have to use this way of formatting:
TextField("amountOnDeadline",value: $startValue, format: .currency(code: Locale.current.currencyCode ?? "EUR"))
Post
Replies
Boosts
Views
Activity
btw. .contextMenu() doesn't work. :-)
Ok, when pasting my code to an iOS-Project, everything works fine. Using it in an empty macOS-project, same problem. Error on line try store.execute(saveRequest)
Could it be a problem with Ventura? The first line of console info seems to confirm this suspicion.
Hi Ludek66,
I still got the same problem. I thought, the optional of field id can be set in inspector, too. But unfortunately that doesn't help. Where is this file? Or is there another thing to be set?
And how can I access the Item to display the name e.g. or make changes / open editing for this set?
I just found something else:
Changes made on the Mac mini (employee) will be synced to CloudKit. In any case, data arrives in the CloudKit. Also changes directly made in CloudKit will arrive at my app on Mac mini.
So syncing itself and my app are working. So there might be a problem on the MacBook Air, where syncing is stopped or delayed.
IMO it has to do with local database.
Editing directly in CloudKit, changes are synced to Mac Mini but not to MacBook.
Editing on mini will change CloudKit, but not MacBook
When completely deleting my app on MacBook und reinstalling, syncing starts and works fine. Restoring a backup just of database-Files (.sqlite), syncing stopps again.
Is inside the database a flag, that prevents syncing? Structure of database should be the same.
Nobody any idea? I know the information is scarce, but if I knew more I would be much closer to the solution.
What I know so far:
Mac A: Master
Mac B: S.er.va.nt
Data on Mac A isn't synced to CloudKit while data from CloudKit is synced to Mac B and the other way round. When I completely delete the app on Mac A (including database file called ***.sqlite), syncing starts again on Mac A, but all Data I added meantime on Mac A is gone. Restoring only database file (***.sqlite) on Mac A, syncing stopps again on Mac A.
So in my opinion, there must be a flag inside the sqlite-file or there's a special character in database I accidentally used, so syncing won't start.
It would be very nice, if somebody can help.
And if I had one wish, dear fairy, it would be very nice if maybe a developer from Apple could comment on it. I know: nice try, but one can wish.
Have got the same problem and can't find a solution.