Skip to content
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

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

macteuts
Copy link
Contributor

  • 🍱 (DesignKit): Rename person.wave.2.svg to person_talking
  • ✨ (GEK): Add updated InstructionView

@macteuts macteuts requested a review from ladislas October 31, 2023 19:04
@macteuts macteuts self-assigned this Oct 31, 2023
Copy link
Member

@ladislas ladislas left a 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 :)

Copy link
Member

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 :)

Copy link
Contributor Author

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()
Copy link
Member

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

Copy link
Contributor Author

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
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ladislas ladislas linked an issue Nov 2, 2023 that may be closed by this pull request
@ladislas ladislas force-pushed the mathieu/feature/gek-Add-updated-InstructionView branch from 4b1f11f to 46cc761 Compare November 3, 2023 14:18
@ladislas ladislas force-pushed the mathieu/feature/gek-Add-updated-InstructionView branch from 46cc761 to da4f0dc Compare November 3, 2023 15:40
Copy link

sonarqubecloud bot commented Nov 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ladislas ladislas merged commit 3e9e42e into main Nov 3, 2023
5 of 6 checks passed
@ladislas ladislas deleted the mathieu/feature/gek-Add-updated-InstructionView branch November 3, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix instructions zone to look like it should @macteuts
2 participants