Hi,
Thank you for the information! I have submitted a feedback report.
The FB number is FB13943979
Thanks!
Post
Replies
Boosts
Views
Activity
Hi!
Thank you for the info, but unfortunately the UIApplicationDelegate protocol method that's used for this purpose this in an app with the UIKit lifecycle ...
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool
.. does not appear to be called in an app with the SwiftUI application lifecycle when instantiated via the UIApplicationDelegateAdaptor property wrapper.
Is this data not yet available in an app with the SwiftUI application lifecycle?
(Also tested with iOS 18 beta and Xcode 16 beta. Same result. That delegate function doesn't appear to be called even with UIApplicationDelegateAdaptor.)
So naturally, about 5 minutes after posting the question.... I found the answer. Use this modifier:
.environment(.locale, .init(identifier: "es"))
with the desired locale identifier.
Thank you! That really helps.
Thank you very much, that answered my question and then some!