You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm envisioning a solution that looks much like .changeEffect(.haptic(.success), value: someStateChanged), but instead of .haptic it would be .changeEffect(.sound(.plinkSound), value: someStateChanged).
I'm also including the complete solution if it can be of any help, or provide any more context, please let me know if there's any more information that would be helpful.
I really love the way that you've included a
.haptic
ChangeEffect, and was wondering if it'd be possible to do the same for playing a sound.Right now I have my own homegrown that I expose through the environment like so
And it's invoked by calling the
playSound
method like this.I'm envisioning a solution that looks much like
.changeEffect(.haptic(.success), value: someStateChanged)
, but instead of.haptic
it would be.changeEffect(.sound(.plinkSound), value: someStateChanged)
.I'm also including the complete solution if it can be of any help, or provide any more context, please let me know if there's any more information that would be helpful.
The text was updated successfully, but these errors were encountered: