That section of the documentation isn't super clear since it's under the header "Display Dynamic Dates", but it doesn't look like all the date styles are intended to be dynamic and updated in real time. The documentation says that .relative, .offset, and .timer "update automatically," but it says that .date and .time "display an absolute date or time".
Have you tried with .timer or .relative?
Post
Replies
Boosts
Views
Activity
I can confirm that with Xcode 12, beta 4, the following worked for me:
Set DEAD_CODE_STRIPPING to NO
Disabled bitcode when uploading to AppStore Connect
Installed on iPhone 11 running Public Beta 3 via TestFlight
Widgets appeared and looked appropriate in the widget picker interface, but appeared black when installing to home screen. Restarting the device resolved the issue, and the widgets now work
@RawMean I can confirm that with Xcode 12, beta 4, the following worked for me:
Set DEAD_CODE_STRIPPING to NO
Disabled bitcode when uploading to AppStore Connect
Installed on iPhone 11 running Public Beta 3 (via TestFlight)
Widgets appeared and looked appropriate in the widget picker interface, but appeared black when installing to home screen. Restarting the device resolved the issue, and the widgets now work.
There seems to be a bug with widgets that are built for release. See here: https://developer.apple.com/forums/thread/655393?page=2
Apple's Xcode release notes says to set DEAD_CODE_STRIPPING to NO and then disable BitCode when submitting, but most developers seem to say that isn't working either.
Disregard. Leaving this post up for posterity, but a simple quit and relaunch of Xcode resolved the issue.
You can just use this on a view, instead of .isPlaceholder:
.redacted(reason: .placeholder)