Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Oleg, your solution 1 works for me and I learned something. Now understand why the sequence matters when it seemed like the code was fine to me. Commented Jan 24, 2018 at 6:32
  • Shoot, I spoke too soon. It works fine with a static value there -- I didn't update it to be dynamic yet, and then I run into a thread issue which is weird. Trying to experiment with DispatchQueue.main.async -- will report back if I figure it out. From documentation, I thought putting my play audio in the didSet would do the trick. Commented Jan 24, 2018 at 6:44
  • Added what I am working on from your first solution -- now visible in the main thread in case anyone sees this question. Commented Jan 24, 2018 at 6:59