Hi,
I've implemented my App Intent that asks for an int and then for a boolean with requestDisambiguation.
If I use [true, false] Siri doesn't translate to other languages automatically, just asks for true or false, no matter what the system language is.
let providedValue2 = try await $myval.requestDisambiguation(among: [true, false], dialog: "")
If I translate the values as strings it works perfectly by interacting with the screen but, with voice, Siri enter in an infinite loop with requestDisambiguation...
let restrue = NSLocalizedString("BoolLocalize", comment: "")
let resfalse = NSLocalizedString("BoolLocalize2", comment: "")
let providedValue2 = try await $myval.requestDisambiguation(among: [restrue, resfalse], dialog: "")
var providedBool = false
if providedValue2 == restrue {
providedBool = true
} ...
Can it be a bug or am I doing something wrong?
Thanks
Post
Replies
Boosts
Views
Activity
Hi,
do you know if it's possible to handle the flashlight inside DataScannerViewController?
I tried with AVCaptureDevice.DiscoverySession, but clearly when torchmode is on DataScannerViewController freeze...
Thanks
Luca