Unit and ui tests

This commit is contained in:
Aleksandrs Proskurins
2022-09-26 16:56:34 +03:00
parent 8976f39251
commit d3a30a8267
7 changed files with 71 additions and 78 deletions
@@ -24,22 +24,21 @@ struct UserSessionOverviewDisclosureCell: View {
var onBackgroundTap: (() -> (Void))? = nil
var body: some View {
VStack(spacing: 0) {
SeparatorLine()
HStack() {
Text(title)
.font(theme.fonts.body)
.foregroundColor(theme.colors.primaryContent)
.frame(maxWidth: .infinity, alignment: .leading)
Image(Asset.Images.chevron.name)
Button(action: { onBackgroundTap?()}) {
VStack(spacing: 0) {
SeparatorLine()
HStack() {
Text(title)
.font(theme.fonts.body)
.foregroundColor(theme.colors.primaryContent)
.frame(maxWidth: .infinity, alignment: .leading)
Image(Asset.Images.chevron.name)
}
.padding(.vertical, 12)
.padding(.horizontal, 16)
SeparatorLine()
}
.padding(.vertical, 12)
.padding(.horizontal, 16)
SeparatorLine()
}
.background(theme.colors.background)
.onTapGesture {
onBackgroundTap?()
.background(theme.colors.background)
}
}
}