Post

Replies

Boosts

Views

Activity

Reply to Widget link broken by `.desaturated` image rendering mode
On iOS 26, the suggested workarounds no longer work. However, thanks to this mastodon post (https://mastodon.social/@jayrhynas/115208669458469304) I was able to find yet another workaround that works on iOS 26 (haven't tested older OSes): Link(destination: deepLink) { VStack() { // Wrapped Color.clear in yet another Link - workaround for .widgetAccentedRenderingMode(.desaturated) breaking links Link(destination: deepLink) { Color.clear }.background { Image(image) .resizable() .widgetAccentedRenderingMode(.accentedDesaturated) } Text("Open app") // Text in link is working fine } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
1d
Reply to Handling cancel button in SwiftUI PhotoPicker (inline)
I'm also having this issue. In the app I'm working on, the PhotosPicker is contained .inline in a thin View wrapper without any additional UI and the wrapper View is presented as a sheet. I would really appreciate to have the default Cancel button working with our .sheet presentation. But it's not. Any hints how to do that?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to Quick Note does not show "Add Link" for iCloud documents even though persistentIdentifier is set
A few more findings after debugging this a couple of more times: Not using NSUserActivity provided by UIDocument (documents located in iCloud provide those) but creating our own with all the properties being set the same makes indeed QuickNote to show the “Add Link” button. Is this a bug or feature? Removing all URL types from userInfo dictionary of the NSUserActivity fixes the issue of missing userInfo dict (and other properties) on NSUserActivity in sceneDelegate's continue activity method after tapping the document link in QuickNote. But this breaks Handoff to other devices where we need the iCloud document URL.
Topic: App & System Services SubTopic: General Tags:
Sep ’21