Post

Replies

Boosts

Views

Activity

Reply to WidgetKit data is redacted
From documentation: Display a Placeholder Widget and Hide Sensitive Data A placeholder view is a generic visual representation with no specific content. When WidgetKit renders your widget, it may need to render your content as a placeholder; for example, while you load data in the background. It generates the placeholder using the redacted(reason:) view modifier with reason set to placeholder. This setting automatically renders the widget’s views in a way appropriate for use as a placeholder. To opt out of rendering as a placeholder and control which of your widget’s views appear redacted to hide sensitive information, use the unredacted() view modifier in the redacted(reason:) callback.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’23
Reply to Xcode - PDF Vector x PNG
If you don't check "Preserve Vector Data" in the assets catalog, XCode will generate 3 PNG files from the PNG. So, not much difference in terms of build size. I would prefer PNG, because, otherwise, creation of PNGs will take time on the designer's side. Automatic job is cheaper then human job. Also, it's easier to track changes in vector. It could even be staged by Git. Easier to maintain, when it comes to updating images.
Feb ’22