Post

Replies

Boosts

Views

Activity

Reply to iOS 15 - AVSpeechSynthesizerDelegate didCancel not getting called
I am still experiencing this in iOS 18.1 using Xcode 16. Feedback filed: FB15164652 See the following sample project: import SwiftUI import AVFoundation class Synthesizer: NSObject, AVSpeechSynthesizerDelegate { let avSpeechSynthesizer = AVSpeechSynthesizer() override init() { super.init() avSpeechSynthesizer.delegate = self } func play() { let utterance = AVSpeechUtterance(string: "Hello world, this is a long string of many words many words many words many words many words") avSpeechSynthesizer.speak(utterance) } func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didStart utterance: AVSpeechUtterance) { print("didStart \(utterance)") DispatchQueue.main.asyncAfter(deadline: .now() + 2) { [weak self] in self?.avSpeechSynthesizer.stopSpeaking(at: .word) } } func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didFinish utterance: AVSpeechUtterance) { print("didFinish \(utterance)") } func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didCancel utterance: AVSpeechUtterance) { print("didCancel \(utterance)") } } struct ContentView: View { @State private var synthesizer = Synthesizer() var body: some View { Button("Play") { synthesizer.play() } } }
Topic: Machine Learning & AI SubTopic: General Tags:
Sep ’24
Reply to Xcode doesn't gather code coverage for local Swift package targets
This continues to be a problem running Xcode Version 13.1 (13A1030d).
Replies
Boosts
Views
Activity
Dec ’21
Reply to NSTextView in NSScrollView with magnification crashes on resize
@Dalaplan did you ever end up solving this? I have a similar issue.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to Preview throwing error HumanReadableSwiftError ConfigurationError: noPreviewInfos
This error appeared when I ran preview whilst having an iOS 13 simulator selected. Switching to a simulator of iOS14+ resolved the issue for me.
Replies
Boosts
Views
Activity
Apr ’22
Reply to Stop using MVVM for SwiftUI
The SwiftUI team actually advise against what you're suggesting. Here is a SwiftUI engineer from Apple's most recent QA session.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Xcode Cloud build gets stuck after completion?
I have been experiencing this lately. I have raised a ticket with Apple Developer Technical Support.
Replies
Boosts
Views
Activity
Mar ’24
Reply to Can I link to Apple's standard EULA in my app's subscription disclosure
Would love to know the answer to this.
Replies
Boosts
Views
Activity
Mar ’24
Reply to iOS 15 - AVSpeechSynthesizerDelegate didCancel not getting called
I am still experiencing this in iOS 18.1 using Xcode 16. Feedback filed: FB15164652 See the following sample project: import SwiftUI import AVFoundation class Synthesizer: NSObject, AVSpeechSynthesizerDelegate { let avSpeechSynthesizer = AVSpeechSynthesizer() override init() { super.init() avSpeechSynthesizer.delegate = self } func play() { let utterance = AVSpeechUtterance(string: "Hello world, this is a long string of many words many words many words many words many words") avSpeechSynthesizer.speak(utterance) } func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didStart utterance: AVSpeechUtterance) { print("didStart \(utterance)") DispatchQueue.main.asyncAfter(deadline: .now() + 2) { [weak self] in self?.avSpeechSynthesizer.stopSpeaking(at: .word) } } func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didFinish utterance: AVSpeechUtterance) { print("didFinish \(utterance)") } func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didCancel utterance: AVSpeechUtterance) { print("didCancel \(utterance)") } } struct ContentView: View { @State private var synthesizer = Synthesizer() var body: some View { Button("Play") { synthesizer.play() } } }
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to What is the correct method for renaming a file in the app's container using the Swiftui 2.0 Document based template?
Were you able to find a solution to this? I see there is a navigationTitle modifier that takes a binding, allowing simple renaming but I haven't figured out how to pass in a binding to the Document's name.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to TextEditor with a fixedSize and scroll disabled is completely broken
Running into the same problem @Xaxxus, did you ever find a solution?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’25