Address comments and cleanup version checks

This commit is contained in:
David Langley
2021-08-25 15:46:02 +01:00
parent 73b448afb6
commit 9b81730a50
11 changed files with 47 additions and 51 deletions
@@ -61,7 +61,7 @@ struct BorderedInputFieldStyle: TextFieldStyle {
return Color(theme.colors.background)
}
private var borderWdith: CGFloat {
private var borderWidth: CGFloat {
return isEditing || isError ? 2 : 1.5
}
@@ -75,7 +75,7 @@ struct BorderedInputFieldStyle: TextFieldStyle {
.padding(.horizontal, 8)
.background(backgroundColor)
.clipShape(rect)
.overlay(rect.stroke(borderColor, lineWidth: borderWdith))
.overlay(rect.stroke(borderColor, lineWidth: borderWidth))
}
}