-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mathieu/feature/gek Add updated InstructionView #412
mathieu/feature/gek Add updated InstructionView #412
Conversation
macteuts
commented
Oct 31, 2023
- 🍱 (DesignKit): Rename person.wave.2.svg to person_talking
- ✨ (GEK): Add updated InstructionView
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM mais j'ai un bug + quelques questions :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est du détail mais si tu peux changer le nom du svg :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
struct ExerciseInstructionsButton: View { | ||
|
||
@ObservedObject var viewModel: ActivityViewViewModel | ||
@State private var synth = AVSpeechSynthesizer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'ai un bug avec le speech, ça marche pas et la console est flooded avec des outputs d'erreur
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Réglé mais comme on ne profite plus de la petite cuisine de SwiftUI il m'a fallu travailler avec le delegate de AVSpeechSynthesizer dans un ViewModel.
Détail important : sur simulateur il faut télécharger les 'voices' pour que ça fonctionne. De plus, le premier essai en 'build&run' sera toujours lent. Ce n'est plus le cas si vous relancez l'app sans logger.
|
||
struct ExerciseInstructionsButton: View { | ||
|
||
@ObservedObject var viewModel: ActivityViewViewModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
est-ce qu'on a besoin de garder tout le viewmodel?
est-ce qu'on peut pas juste utiliser le viewmodel pour en extraire le text
ou passer directement le text à la vue pour ne pas avoir de dépendance avec le view model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
4b1f11f
to
46cc761
Compare
46cc761
to
da4f0dc
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |