Search results for

“translate scheme”

6,671 results found

Post

Replies

Boosts

Views

Activity

Compile Failure on NSXPCInterface Initializer
I have a project that leverages XPC and has interoperability between Swift and Objective-C++. I am presently getting a compile-time error in one of our unit test targets, of Argument passed to call that takes no arguments on the following code: let interface = NSXPCInterface(with: XPCServiceDelegate.self) My XPCServiceDelegate protocol is defined as: @objc(XPCServiceDelegate) public protocol XPCServiceDelegate { //... } For the longest time, this code has compiled successfully, and it has not recently changed. There are two confusing things about this error. The first is that I have a different build scheme that will compile correctly other code with the same structure. The other is that I have team members that are able to compile my failing scheme successfully on the same XCode version, OSVersion, and branch of our repository. I've attempted numerous things to try to get this code to compile, but I've run out of ideas. Here's what I've tried: Clean build both on XCode 16.4 and XCode 26 Bet
12
0
309
Aug ’25
How to Handle Custom URL Scheme Fallback Gracefully in iOS Safari
We use a direct link mechanism in our app that attempts to open the app if it's already installed; otherwise, it redirects the user to the App Store. However, when the app is not installed, Safari displays an alert saying: Safari cannot open the page because the address is invalid. This popup appears to be caused by attempting to open a custom URL scheme that doesn't resolve. what is the recommendation from apple to have a smooth transition to our mobile App Here’s a sample link we’re using: https://new.oneclear.com/Asset/fe5f7fb6-205a-40f8-9efe-71678361aa2c?t=NTA0NQ==
Topic: Safari & Web SubTopic: General Tags:
1
0
113
Aug ’25
Reply to Why does NSURLSession with Multipath entitlement seamlessly switch to cellular when on a hardware Wi-Fi with no internet, but WKWebView does not?
[quote='795547021, wangshixiong, /thread/795547, /profile/wangshixiong'] Why does NSURLSession with the multipath service type seamlessly use cellular when the Wi-Fi has no internet, but WKWebView does not exhibit the same fallback behavior? [/quote] Because Multipath TCP (MPTCP) is something you have to opt in to. You’re doing that with URLSession by setting the multipathServiceType property. You can’t do that with WKWebView because it doesn’t have the equivalent of that property, and thus it uses regular TCP. Regular TCP won’t do this sort of switching. The fundamental issue here is your Wi-Fi network. It seems like your accessory is publishing a network that claims to provide access to the Internet but doesn’t. This causes iOS to switch the default route, which then triggers this problem. The best solution to this problem is to change your accessory to not do that. There are other options, as I explain in Working with a Wi-Fi Accessory. That post in part of my Extra-ordinary Networking series, and the othe
Topic: Safari & Web SubTopic: General Tags:
Aug ’25
Xcode 16.2: Unsigned IPA uses older SDK version (17.5 instead of 18.2)
Hellp I'm facing an issue with Xcode 16.2 when building iOS apps for different clients. I have a white-label app, and I build: A signed IPA for some clients An unsigned IPA for others For the signed app, I use: /usr/bin/xcodebuild -sdk iphoneos18.2 -configuration Release-XXX -workspace /Users/runner/work/1/s/ios/Runner.xcworkspace -scheme Runner build -verbose CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY=XXXXXXXX PROVISIONING_PROFILE=XXXXXXXXX PROVISIONING_PROFILE_SPECIFIER=XXXXXX For the unsigned app, I use: /usr/bin/xcodebuild -sdk iphoneos18.2 -configuration Release-XXX -workspace /Users/runner/work/1/s/ios/Runner.xcworkspace -scheme Runner build CODE_SIGNING_ALLOWED=NO When I inspect the resulting Runner binary: The signed IPA correctly shows SDK 18.2 The unsigned IPA shows SDK 17.5 Why is the unsigned build using SDK 17.5 even though I explicitly specify -sdk iphoneos18.2 ? To check the SDK version used in the compiled binary, I use the following Python script with the lief
1
0
82
Aug ’25
Live Translations on VOIP on iOS26
Hi team, With regards to Call (Live) Translations on VOIP: Is it possible to invoke live translations within the app? (without going into the Call System UI) Is it possible to navigate users from app to Call System UI via an API? (and also invoking the new live translations directly) Will Apple support more languages apart from the current ones? (Currently I see 4 supported languages)
1
0
168
Aug ’25
Widget Memory Limit - Per Widget Kind/Size or Per Target?
I am building a widget that supports 2 different widget kinds, each supporting systemSmall, systemMedium, and systemLarge size families. My widget does download and display images so I expect memory usage to be on the higher end, but in debugging some memory issues, I notice that when I build my widget scheme to a physical device, things start off reasonable at ~12MB of memory usage. But as I change the widgets intent, add the other widget kind, or add different widget size families, this memory usage grows until it ultimately hits the 30MB cap. My question is, is the 30MB memory limit spread across all my supported widget kinds/sizes? Or does each individual widget get its own 30MB cap? i.e., if I have systemMedium Widget A and systemLarge Widget B, are they sharing that 30MB memory limit?
1
0
189
Aug ’25
Reply to can't create info.plist from info-> URL Types
However, I can't find info.plist in the project folder. Xcode moved much of what used to be in the Info.plist file into build settings for those that can be represented as simple key-value pairs several releases ago. As a result, some of the Xcode templates no longer create a file called Info.plist as part of the template when you start your app. However, if you need custom values in your Info.plist file, you can still add them through the Targets > Info tab — just click the + button on a row in the Custom Target Properties section and add your values, and Xcode will create an Info.plist file on disk that holds those custom values. Note that I'm not saying to do this in the URL Types section, unless you're specifically trying to create a custom URL scheme. Doing this configuration in the other section I name above could make the difference from the other info you found. — Ed Ford,  DTS Engineer
Aug ’25
Reply to RCP Scene issues at runtime (visionOS 26 / Xcode 26 Beta 4)
This project worked fine in visionOS 2.5 & Xcode 16.4. We do have a custom process to load the bundle though, we build our package with a custom script: #!/bin/sh rm -rf ./.build xcodebuild -scheme RealityKitContentPackage -destination 'generic/platform=visionOS' -configuration Release -derivedDataPath ./.build clean build rm -rf 'TGV INOUI/Assets/RealityKitContent/RealityKitContent.bundle' cp -rf .build/Build/Products/Release-xros/RealityKitContent_RealityKitContent.bundle/ 'TGV INOUI/Assets/RealityKitContent/RealityKitContent.bundle' rm -rf .build and load it this way: var realityKitContentBundle: Bundle { let bundleURL = Bundle.main.url(forResource: RealityKitContent, withExtension: bundle)! return Bundle(url: bundleURL)! } The scene is then loaded like this: environmentEntity = try! await Entity(named: TGVM, in: realityKitContentBundle) We discovered today that the issue is coming from the fact that our 3D files are in the .usdc format, when using .usdz things are working as inteded. But
Aug ’25
Reply to iOS NSURLSession mTLS: Client certificate not sent, error -1206
Ah, right, this is one of those weird CFNetwork edge cases. You can actually see the root cause with your curl command: % curl https://ss3.at.docu-tools.com --cert-type P12 --cert client_full.p12 --pass 1234 --cacert ca.pem -v … * [HTTP/2] [1] OPENED stream for https://ss3.at.docu-tools.com/ * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: ss3.at.docu-tools.com] * [HTTP/2] [1] [:path: /] * [HTTP/2] [1] [user-agent: curl/8.7.1] * [HTTP/2] [1] [accept: */*] > GET / HTTP/2 > Host: ss3.at.docu-tools.com > User-Agent: curl/8.7.1 > Accept: */* > * Request completely sent off < HTTP/2 403 … So the TLS handshake works, after which curl issues the GET command, and that fails with a 403. In curl that’s considered an HTTP error rather than a transport error. However, CFNetwork, for its own obscure reasons, translates an HTTP error 403 after a client certificate authentication challenge into a NSURLErrorClientCertificateRequired transport error.
Aug ’25
Change iOS Keyboard Language without adding to Settings > Keyboards
The first-party Apple Translate app will switch the on-screen keyboard to the selected language, even when the keyboard for that language is NOT added in Settings > General > Keyboards. We'd like to mirror this behavior and switch the keyboard for input based on a user-selected language from a drop-down without the user needing to add that language to Keyboards I'm struggling to find if this behavior is achieved via a public API. Any insights here?
1
0
226
Aug ’25
Reply to Dynamic Library cannot call exposed C function
When you build your app for release, what does the on-disk structure look like. For example, here’s what I see when I build a project I created rom one of Xcode’s built-in templates: % find Test795348 04-08-2025, 10.47.xcarchive/Products/Applications/Test795348.app …/Test795348.app …/Test795348.app/_CodeSignature …/Test795348.app/_CodeSignature/CodeResources …/Test795348.app/Test795348 …/Test795348.app/embedded.mobileprovision …/Test795348.app/Info.plist …/Test795348.app/PkgInfo Specifically, I’m interested in the final disposition of your Mach-O images. Feel free to elide anything that’s not directly related to that, such as your resources. Also feel free to redact any private info you don’t want to share. In Posting a Crash Report I describe a simple redaction scheme that I’ve found works well for artefacts. The reason I’m asking this is that iOS imposes some strict limits on how you can embed code within an iOS app. See Placing Content in a Bundle for info about that. And, quoting that doc: If you
Topic: Code Signing SubTopic: General Tags:
Aug ’25
Reply to HTTP Requests via Local Network without Wifi
Before I start, I want to be clear that I can’t help you with third-party tooling. If you need help translating my response to your third-party setup, I recommend that you seek assistance from that third-party’s support channel. On the Apple side of things, there are three common causes of the problems like this: App Transport Security Local network privacy Interface lifecycle For the first, I recommend that you temporarily use NSAllowsArbitraryLoads to disable ATS completely. Once you get things working reliably, you can go revisit that choice. Setting up secure communication with an accessory is tricky; see TLS For Accessory Developers for my advice on that front. For the second, see TN3179 Understanding local network privacy. For third, this is something I discuss in detail in various posts hanging off Extra-ordinary Networking. Specifically, Working with a Wi-Fi Accessory defines three categories of Wi-Fi based accessory, and it’s important to understand this category before you go further Share
Aug ’25
Why does NSURLSession with Multipath entitlement seamlessly switch to cellular when on a hardware Wi-Fi with no internet, but WKWebView does not?
Body:
Hi all, I’m seeing a puzzling discrepancy in behavior between NSURLSession (with multipathServiceType = NSURLSessionMultipathServiceTypeInteractive) and WKWebView when the device is connected to a Wi-Fi SSID that has no internet (e.g., a hardware device’s AP). I have the Multipath entitlement properly enabled, and in this scenario: NSURLSession requests automatically fall back to cellular and succeed (no user intervention, fast switch). WKWebView loads fail or stall: the web content does not appear, and it seems like the web view is not using the cellular path even though the system network path becomes satisfied and real Internet reachability is confirmed. Environment: iOS version: (e.g., iOS 18.4) Device: (e.g., iPhone 15 Pro) Multipath entitlement: enabled in the app, using NSURLSessionMultipathServiceTypeInteractive Connected SSID: hardware device Wi-Fi with no external internet Expected fallback: automatic to cellular once the Wi-Fi has no internet, as observed with NSURLSession What I’ve done / ob
1
0
176
Aug ’25
[iOS 26] iOS App Does Not Receive Deep Link from Widget When Using widgetAccentedRenderingMode on Image
Summary When a SwiftUI widget uses a Link containing an Image modified with .widgetAccentedRenderingMode (using any mode except .fullColor), tapping the image on the widget launches the app but does not pass the expected deep link URL to the SceneDelegate. Steps to Reproduce Create a SwiftUI Widget View with a Link: struct ImageView: View { var image: UIImage var body: some View { Link(URL(string: myapp://image)!) { Image(uiImage: image) .resizable() .widgetAccentedRenderingMode(.accentedDesaturated) // or any mode other than .fullColor .scaledToFill() .clipped() } } } Add Custom URL Scheme in Info.plist: CFBundleURLName com.company.myapp CFBundleURLSchemes myapp Implement Deep Link Handling in SceneDelegate: func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { if let url = connectionOptions.urlContexts.first?.url { handle(url) } } func scene(_ scene: UIScene, openURLContexts urlContexts: Set) { if let url = urlContexts.first?
2
0
340
Aug ’25
Compile Failure on NSXPCInterface Initializer
I have a project that leverages XPC and has interoperability between Swift and Objective-C++. I am presently getting a compile-time error in one of our unit test targets, of Argument passed to call that takes no arguments on the following code: let interface = NSXPCInterface(with: XPCServiceDelegate.self) My XPCServiceDelegate protocol is defined as: @objc(XPCServiceDelegate) public protocol XPCServiceDelegate { //... } For the longest time, this code has compiled successfully, and it has not recently changed. There are two confusing things about this error. The first is that I have a different build scheme that will compile correctly other code with the same structure. The other is that I have team members that are able to compile my failing scheme successfully on the same XCode version, OSVersion, and branch of our repository. I've attempted numerous things to try to get this code to compile, but I've run out of ideas. Here's what I've tried: Clean build both on XCode 16.4 and XCode 26 Bet
Replies
12
Boosts
0
Views
309
Activity
Aug ’25
Reply to How to Handle Custom URL Scheme Fallback Gracefully in iOS Safari
Universal Links are generally preferred over custom URL schemes these days. — Ed Ford,  DTS Engineer
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
How to Handle Custom URL Scheme Fallback Gracefully in iOS Safari
We use a direct link mechanism in our app that attempts to open the app if it's already installed; otherwise, it redirects the user to the App Store. However, when the app is not installed, Safari displays an alert saying: Safari cannot open the page because the address is invalid. This popup appears to be caused by attempting to open a custom URL scheme that doesn't resolve. what is the recommendation from apple to have a smooth transition to our mobile App Here’s a sample link we’re using: https://new.oneclear.com/Asset/fe5f7fb6-205a-40f8-9efe-71678361aa2c?t=NTA0NQ==
Topic: Safari & Web SubTopic: General Tags:
Replies
1
Boosts
0
Views
113
Activity
Aug ’25
Reply to Why does NSURLSession with Multipath entitlement seamlessly switch to cellular when on a hardware Wi-Fi with no internet, but WKWebView does not?
[quote='795547021, wangshixiong, /thread/795547, /profile/wangshixiong'] Why does NSURLSession with the multipath service type seamlessly use cellular when the Wi-Fi has no internet, but WKWebView does not exhibit the same fallback behavior? [/quote] Because Multipath TCP (MPTCP) is something you have to opt in to. You’re doing that with URLSession by setting the multipathServiceType property. You can’t do that with WKWebView because it doesn’t have the equivalent of that property, and thus it uses regular TCP. Regular TCP won’t do this sort of switching. The fundamental issue here is your Wi-Fi network. It seems like your accessory is publishing a network that claims to provide access to the Internet but doesn’t. This causes iOS to switch the default route, which then triggers this problem. The best solution to this problem is to change your accessory to not do that. There are other options, as I explain in Working with a Wi-Fi Accessory. That post in part of my Extra-ordinary Networking series, and the othe
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Xcode 16.2: Unsigned IPA uses older SDK version (17.5 instead of 18.2)
Hellp I'm facing an issue with Xcode 16.2 when building iOS apps for different clients. I have a white-label app, and I build: A signed IPA for some clients An unsigned IPA for others For the signed app, I use: /usr/bin/xcodebuild -sdk iphoneos18.2 -configuration Release-XXX -workspace /Users/runner/work/1/s/ios/Runner.xcworkspace -scheme Runner build -verbose CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY=XXXXXXXX PROVISIONING_PROFILE=XXXXXXXXX PROVISIONING_PROFILE_SPECIFIER=XXXXXX For the unsigned app, I use: /usr/bin/xcodebuild -sdk iphoneos18.2 -configuration Release-XXX -workspace /Users/runner/work/1/s/ios/Runner.xcworkspace -scheme Runner build CODE_SIGNING_ALLOWED=NO When I inspect the resulting Runner binary: The signed IPA correctly shows SDK 18.2 The unsigned IPA shows SDK 17.5 Why is the unsigned build using SDK 17.5 even though I explicitly specify -sdk iphoneos18.2 ? To check the SDK version used in the compiled binary, I use the following Python script with the lief
Replies
1
Boosts
0
Views
82
Activity
Aug ’25
Live Translations on VOIP on iOS26
Hi team, With regards to Call (Live) Translations on VOIP: Is it possible to invoke live translations within the app? (without going into the Call System UI) Is it possible to navigate users from app to Call System UI via an API? (and also invoking the new live translations directly) Will Apple support more languages apart from the current ones? (Currently I see 4 supported languages)
Replies
1
Boosts
0
Views
168
Activity
Aug ’25
Widget Memory Limit - Per Widget Kind/Size or Per Target?
I am building a widget that supports 2 different widget kinds, each supporting systemSmall, systemMedium, and systemLarge size families. My widget does download and display images so I expect memory usage to be on the higher end, but in debugging some memory issues, I notice that when I build my widget scheme to a physical device, things start off reasonable at ~12MB of memory usage. But as I change the widgets intent, add the other widget kind, or add different widget size families, this memory usage grows until it ultimately hits the 30MB cap. My question is, is the 30MB memory limit spread across all my supported widget kinds/sizes? Or does each individual widget get its own 30MB cap? i.e., if I have systemMedium Widget A and systemLarge Widget B, are they sharing that 30MB memory limit?
Replies
1
Boosts
0
Views
189
Activity
Aug ’25
Reply to can't create info.plist from info-> URL Types
However, I can't find info.plist in the project folder. Xcode moved much of what used to be in the Info.plist file into build settings for those that can be represented as simple key-value pairs several releases ago. As a result, some of the Xcode templates no longer create a file called Info.plist as part of the template when you start your app. However, if you need custom values in your Info.plist file, you can still add them through the Targets > Info tab — just click the + button on a row in the Custom Target Properties section and add your values, and Xcode will create an Info.plist file on disk that holds those custom values. Note that I'm not saying to do this in the URL Types section, unless you're specifically trying to create a custom URL scheme. Doing this configuration in the other section I name above could make the difference from the other info you found. — Ed Ford,  DTS Engineer
Replies
Boosts
Views
Activity
Aug ’25
Reply to RCP Scene issues at runtime (visionOS 26 / Xcode 26 Beta 4)
This project worked fine in visionOS 2.5 & Xcode 16.4. We do have a custom process to load the bundle though, we build our package with a custom script: #!/bin/sh rm -rf ./.build xcodebuild -scheme RealityKitContentPackage -destination 'generic/platform=visionOS' -configuration Release -derivedDataPath ./.build clean build rm -rf 'TGV INOUI/Assets/RealityKitContent/RealityKitContent.bundle' cp -rf .build/Build/Products/Release-xros/RealityKitContent_RealityKitContent.bundle/ 'TGV INOUI/Assets/RealityKitContent/RealityKitContent.bundle' rm -rf .build and load it this way: var realityKitContentBundle: Bundle { let bundleURL = Bundle.main.url(forResource: RealityKitContent, withExtension: bundle)! return Bundle(url: bundleURL)! } The scene is then loaded like this: environmentEntity = try! await Entity(named: TGVM, in: realityKitContentBundle) We discovered today that the issue is coming from the fact that our 3D files are in the .usdc format, when using .usdz things are working as inteded. But
Replies
Boosts
Views
Activity
Aug ’25
Reply to iOS NSURLSession mTLS: Client certificate not sent, error -1206
Ah, right, this is one of those weird CFNetwork edge cases. You can actually see the root cause with your curl command: % curl https://ss3.at.docu-tools.com --cert-type P12 --cert client_full.p12 --pass 1234 --cacert ca.pem -v … * [HTTP/2] [1] OPENED stream for https://ss3.at.docu-tools.com/ * [HTTP/2] [1] [:method: GET] * [HTTP/2] [1] [:scheme: https] * [HTTP/2] [1] [:authority: ss3.at.docu-tools.com] * [HTTP/2] [1] [:path: /] * [HTTP/2] [1] [user-agent: curl/8.7.1] * [HTTP/2] [1] [accept: */*] > GET / HTTP/2 > Host: ss3.at.docu-tools.com > User-Agent: curl/8.7.1 > Accept: */* > * Request completely sent off < HTTP/2 403 … So the TLS handshake works, after which curl issues the GET command, and that fails with a 403. In curl that’s considered an HTTP error rather than a transport error. However, CFNetwork, for its own obscure reasons, translates an HTTP error 403 after a client certificate authentication challenge into a NSURLErrorClientCertificateRequired transport error.
Replies
Boosts
Views
Activity
Aug ’25
Change iOS Keyboard Language without adding to Settings > Keyboards
The first-party Apple Translate app will switch the on-screen keyboard to the selected language, even when the keyboard for that language is NOT added in Settings > General > Keyboards. We'd like to mirror this behavior and switch the keyboard for input based on a user-selected language from a drop-down without the user needing to add that language to Keyboards I'm struggling to find if this behavior is achieved via a public API. Any insights here?
Replies
1
Boosts
0
Views
226
Activity
Aug ’25
Reply to Dynamic Library cannot call exposed C function
When you build your app for release, what does the on-disk structure look like. For example, here’s what I see when I build a project I created rom one of Xcode’s built-in templates: % find Test795348 04-08-2025, 10.47.xcarchive/Products/Applications/Test795348.app …/Test795348.app …/Test795348.app/_CodeSignature …/Test795348.app/_CodeSignature/CodeResources …/Test795348.app/Test795348 …/Test795348.app/embedded.mobileprovision …/Test795348.app/Info.plist …/Test795348.app/PkgInfo Specifically, I’m interested in the final disposition of your Mach-O images. Feel free to elide anything that’s not directly related to that, such as your resources. Also feel free to redact any private info you don’t want to share. In Posting a Crash Report I describe a simple redaction scheme that I’ve found works well for artefacts. The reason I’m asking this is that iOS imposes some strict limits on how you can embed code within an iOS app. See Placing Content in a Bundle for info about that. And, quoting that doc: If you
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to HTTP Requests via Local Network without Wifi
Before I start, I want to be clear that I can’t help you with third-party tooling. If you need help translating my response to your third-party setup, I recommend that you seek assistance from that third-party’s support channel. On the Apple side of things, there are three common causes of the problems like this: App Transport Security Local network privacy Interface lifecycle For the first, I recommend that you temporarily use NSAllowsArbitraryLoads to disable ATS completely. Once you get things working reliably, you can go revisit that choice. Setting up secure communication with an accessory is tricky; see TLS For Accessory Developers for my advice on that front. For the second, see TN3179 Understanding local network privacy. For third, this is something I discuss in detail in various posts hanging off Extra-ordinary Networking. Specifically, Working with a Wi-Fi Accessory defines three categories of Wi-Fi based accessory, and it’s important to understand this category before you go further Share
Replies
Boosts
Views
Activity
Aug ’25
Why does NSURLSession with Multipath entitlement seamlessly switch to cellular when on a hardware Wi-Fi with no internet, but WKWebView does not?
Body:
Hi all, I’m seeing a puzzling discrepancy in behavior between NSURLSession (with multipathServiceType = NSURLSessionMultipathServiceTypeInteractive) and WKWebView when the device is connected to a Wi-Fi SSID that has no internet (e.g., a hardware device’s AP). I have the Multipath entitlement properly enabled, and in this scenario: NSURLSession requests automatically fall back to cellular and succeed (no user intervention, fast switch). WKWebView loads fail or stall: the web content does not appear, and it seems like the web view is not using the cellular path even though the system network path becomes satisfied and real Internet reachability is confirmed. Environment: iOS version: (e.g., iOS 18.4) Device: (e.g., iPhone 15 Pro) Multipath entitlement: enabled in the app, using NSURLSessionMultipathServiceTypeInteractive Connected SSID: hardware device Wi-Fi with no external internet Expected fallback: automatic to cellular once the Wi-Fi has no internet, as observed with NSURLSession What I’ve done / ob
Replies
1
Boosts
0
Views
176
Activity
Aug ’25
[iOS 26] iOS App Does Not Receive Deep Link from Widget When Using widgetAccentedRenderingMode on Image
Summary When a SwiftUI widget uses a Link containing an Image modified with .widgetAccentedRenderingMode (using any mode except .fullColor), tapping the image on the widget launches the app but does not pass the expected deep link URL to the SceneDelegate. Steps to Reproduce Create a SwiftUI Widget View with a Link: struct ImageView: View { var image: UIImage var body: some View { Link(URL(string: myapp://image)!) { Image(uiImage: image) .resizable() .widgetAccentedRenderingMode(.accentedDesaturated) // or any mode other than .fullColor .scaledToFill() .clipped() } } } Add Custom URL Scheme in Info.plist: CFBundleURLName com.company.myapp CFBundleURLSchemes myapp Implement Deep Link Handling in SceneDelegate: func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { if let url = connectionOptions.urlContexts.first?.url { handle(url) } } func scene(_ scene: UIScene, openURLContexts urlContexts: Set) { if let url = urlContexts.first?
Replies
2
Boosts
0
Views
340
Activity
Aug ’25