Fix security card tappability

This commit is contained in:
Alfonso Grillo
2022-12-15 16:00:37 +01:00
parent 33f631027d
commit 4b4ca83932
@@ -43,13 +43,9 @@ struct SecurityRecommendationCard: View {
.foregroundColor(theme.colors.secondaryContent)
}
Button {
action()
} label: {
Text(buttonTitle)
.font(theme.fonts.body)
}
.foregroundColor(theme.colors.accent)
Text(buttonTitle)
.font(theme.fonts.body)
.foregroundColor(theme.colors.accent)
}
.frame(maxWidth: .infinity, alignment: .leading)
}
@@ -57,6 +53,9 @@ struct SecurityRecommendationCard: View {
.background(theme.colors.background)
.clipShape(backgroundShape)
.shapedBorder(color: theme.colors.quinaryContent, borderWidth: 1.0, shape: backgroundShape)
.onTapGesture {
action()
}
}
private var backgroundShape: RoundedRectangle {