A simple view has misaligned localized content after being converted to an image using ImageRenderer.
This is still problematic on real phone and TestFlight
I'm not sure what the problem is, I'm assuming it's an ImageRenderer bug.
I tried to use UIGraphicsImageRenderer, but the UIGraphicsImageRenderer captures the image in an inaccurate position, and it will be offset resulting in a white border. And I don't know why in some cases it encounters circular references that result in blank images.
"(1) days" is also not converted to "1 day" properly.
Post
Replies
Boosts
Views
Activity
I found that the main application and widget NSUbiquitousKeyValueStore data is completely independent?
(I signed in to the same iCloud account, the same AppGroup, the same iCloud Containers for the app and widget, and Key-value Storage was checked.)
But when I get on the widget and modify NSUbiquitousKeyValueStore data, find the Key to the value of the same, such as in the screenshot, the main application of 'gemstone' value is 24, But the widget's value is still 0.
I thought it was a synchronization problem, but using NSUbiquitousKeyValueStore.default.synchronize() or restart the App didn't solve the problem
... “Add Image”function can't used, this is the Logs:
Main App Logs:
---ubiquitousKeyValueStoreDidChange
---Change reason: 0
---The key 'experience' was updated to value '-28'
---UbiquitousKeyValueStoreDidChange: [AnyHashable("NSUbiquitousKeyValueStoreChangedKeysKey"): <__NSSingleObjectArrayI 0x280098960>(
experience
)
, AnyHashable("NSUbiquitousKeyValueStoreChangeReasonKey"): 0]
---ubiquitousKeyValueStoreDidChange
---Change reason: 0
---The key 'gemstone' was updated to value '24'
---UbiquitousKeyValueStoreDidChange: [AnyHashable("NSUbiquitousKeyValueStoreChangedKeysKey"): <__NSSingleObjectArrayI 0x280081c70>(
gemstone
)
widget Logs:
--- widget health: 0, level: 0, experience: 0
---ubiquitousKeyValueStoreDidChange
---Change reason: 0
---The key 'experience' was updated to value '2'
---UbiquitousKeyValueStoreDidChange: [AnyHashable("NSUbiquitousKeyValueStoreChangeReasonKey"): 0, AnyHashable("NSUbiquitousKeyValueStoreChangedKeysKey"): <__NSSingleObjectArrayI 0x159e752f0>(
experience
)
]
--- widget health: 0, level: 0, experience: 2
---ubiquitousKeyValueStoreDidChange
---Change reason: 0
---The key 'gemstone' was updated to value '2'
---UbiquitousKeyValueStoreDidChange: [AnyHashable("NSUbiquitousKeyValueStoreChangeReasonKey"): 0, AnyHashable("NSUbiquitousKeyValueStoreChangedKeysKey"): <__NSSingleObjectArrayI 0x15bb0cd80>(
gemstone
)
]