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 Apple Watch cannot reconnect
I had the same problem with "Waiting to reconnect to Apple Watch" because I used Personal Hotspot. I got to go to cafe to join WiFi there and the issue was resolved. iPhone, mac and watch want to be in the same WiFi network and Personal Hotspot was always the issue, starting from very first versions of watchOS.
Dec ’23
Reply to How to reduce complication extension executable size?
Further exploration. I looked into intermediate objects in DerivedData... /Debug-watchsimulator/complicationsExtension.build/Objects-normal/arm64. The arm64 folder itself takes 25 MB. The fattest files are complicationsExtension.swiftmodule (1 MB) and complicationsExtension-master.priors (500 KB), everything else is hundreds of object files .o and other compiled stuff. Some complications are short files but they produce heavy objects. For example ClassicComplPulse.o is a 70-line SwiftUI view (with previews) and it results in 200 KB. The source code takes only 3 KB. Looks like SwiftUI views get significantly expanded after compilation.
Topic: App & System Services SubTopic: General Tags:
Jan ’24