Skip to content

Commit

Permalink
♻️ (GEK): Rename SelectionChoiceView to TouchToSelectChoiceView
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Nov 14, 2023
1 parent 349cf3c commit aad4ecb
Show file tree
Hide file tree
Showing 25 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension ListenThenTouchToSelectView {

var body: some View {
let choice = viewModel.choices[0]
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extension ListenThenTouchToSelectView {
var body: some View {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ extension ListenThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...1]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
}
}

SelectionChoiceView(choice: viewModel.choices[2], size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: viewModel.choices[2], size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: viewModel.choices[2])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension ListenThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...1]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension ListenThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[2...3]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension ListenThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...2]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension ListenThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[3...4]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension ListenThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...2]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension ListenThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[3...5]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension ObserveThenTouchToSelectView {

var body: some View {
let choice = viewModel.choices[0]
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extension ObserveThenTouchToSelectView {
var body: some View {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ extension ObserveThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...1]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
}
}

SelectionChoiceView(choice: viewModel.choices[2], size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: viewModel.choices[2], size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: viewModel.choices[2])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension ObserveThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...1]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension ObserveThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[2...3]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension ObserveThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...2]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension ObserveThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[3...4]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension ObserveThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...2]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension ObserveThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[3...5]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extension RobotThenTouchToSelectView {

var body: some View {
let choice = viewModel.choices[0]
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extension RobotThenTouchToSelectView {
var body: some View {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ extension RobotThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...1]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
}
}

SelectionChoiceView(choice: viewModel.choices[2], size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: viewModel.choices[2], size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: viewModel.choices[2])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension RobotThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...1]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension RobotThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[2...3]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension RobotThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...2]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension RobotThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[3...4]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension RobotThenTouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...2]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -29,7 +29,7 @@ extension RobotThenTouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[3...5]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize, isTappable: isTappable)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension TouchToSelectView {

var body: some View {
let choice = viewModel.choices[0]
SelectionChoiceView(choice: choice, size: kAnswerSize)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extension TouchToSelectView {
var body: some View {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extension TouchToSelectView {
var body: some View {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...2]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extension TouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...1]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -28,7 +28,7 @@ extension TouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[2...3]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ extension TouchToSelectView {
VStack(spacing: kVerticalSpacing) {
HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[0...2]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand All @@ -28,7 +28,7 @@ extension TouchToSelectView {

HStack(spacing: kHorizontalSpacing) {
ForEach(viewModel.choices[3...4]) { choice in
SelectionChoiceView(choice: choice, size: kAnswerSize)
TouchToSelectChoiceView(choice: choice, size: kAnswerSize)
.onTapGesture {
viewModel.onChoiceTapped(choice: choice)
}
Expand Down
Loading

0 comments on commit aad4ecb

Please sign in to comment.