Posts

Post not yet marked as solved
1 Replies
349 Views
How do I draw roundedrectangle (or other shapes) in SwiftUI?I can't seem to find an example for it. Thanks in advance
Posted
by rusmin.
Last updated
.
Post not yet marked as solved
9 Replies
1.8k Views
HiI have a couple questions:1. I have this code on macOS 10.15...var recognizer = SFSpeechRecognizer(locale: Locale(identifier: "en-US"))!...... if !self.recognizer.isAvailable { NSLog("RECOGNIZER NOT AVAILABLE") return }The thing is recognizer is NOT availabe. No matter what I do, it's always not available. Am I missing something? What should I do to make it work?2. I downloaded one example of SFSpeechRecognizer on iOS. I know that in WWDC19, it was said that now ondevice recognition is supported. I put a break point here if #available(iOS 13, *) { recognitionRequest.requiresOnDeviceRecognition = true }and recognitionRequest.requiresOnDeviceRecognition = true is executed.However, when I say something, the sample application not responding. It's not doing anything. It does something if I set that requiresOnDeviceRecognition flag to false and turn on internet.why is it not working? Am I doing something wrong?If someone can guide me, please help.Many thanks in advance
Posted
by rusmin.
Last updated
.