Hey there! ππ»
I'm currently localizing my app and came across the interesting fact that in China (I'm not aware of other countries) the color red is associated with something positive, whereas in Germany (where I come from) the color green evokes a positive association.
I then tried out whether this is taken into account in Apple's native apps. For example, in the Stocks app, a price gain with German localization is shown in green, whereas a price gain with Chinese localization is shown in red.
Now I'm wondering whether there is a static property of the Color or UIColor class where I can retrieve a positive or negative color depending on the localization.
Does anyone have experience with this?
Thanks in advance! π
Post
Replies
Boosts
Views
Activity
Hey there,
for my recent projects I used CoreData for persistence. One nice feature I use all the time is the ability to create a child context for editing operations.
When editing an entity in a form presented as a sheet, the changes made are only saved into the main context/parent context if the child context (I call this the editing context) is saved. Therefore dismissing an editing view results in destroying the child context and all the changes are discarded. Likewise when saving in the editing view, the changes will be proceeded to the parent context and persisted.
Is there any possibility to get the same or equivalent behavior when using SwiftData. Or is there another way to model this kind of cases?
All the best from Cologne, Germany!