all the row is tappable and fixed an issue with the tests

This commit is contained in:
Mauro Romito 2022-11-30 11:37:12 +01:00
parent e7b9b2e8d7
commit a5dc378cd7
2 changed files with 4 additions and 0 deletions

View file

@ -27,6 +27,7 @@ class ComposerCreateActionListTests: XCTestCase {
initialViewState: ComposerCreateActionListViewState(
actions: ComposerCreateAction.allCases,
wysiwygEnabled: true,
isScrollingEnabled: false,
bindings: ComposerCreateActionListBindings(textFormattingEnabled: true)
)
)

View file

@ -72,6 +72,9 @@ struct ComposerCreateActionList: View {
}
}
.contentShape(Rectangle())
.onTapGesture {
viewModel.textFormattingEnabled.toggle()
}
.padding(.horizontal, 16)
.padding(.vertical, 12)