Skip to content

Commit 317067b

Browse files
committed
[fix] #157 상태에 따른 배경, border 색 잘못나오는 문제 수정
1 parent 87bdb49 commit 317067b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Projects/DSKit/Sources/Modifiers/PokitInputModifier.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,13 @@ struct PokitInputModifier: ViewModifier {
2020
}
2121

2222
func body(content: Content) -> some View {
23-
let backgroundColor = state == .active ? .pokit(.bg(.base)) : self.state.backgroundColor
24-
let backgroundStrokeColor = state == .active ? .pokit(.border(.brand)) : self.state.backgroundStrokeColor
25-
2623
content
2724
.background {
2825
RoundedRectangle(cornerRadius: shape.radius, style: .continuous)
29-
.fill(backgroundColor)
26+
.fill(self.state.backgroundColor)
3027
.overlay {
3128
RoundedRectangle(cornerRadius: shape.radius, style: .continuous)
32-
.stroke(backgroundStrokeColor, lineWidth: 1)
29+
.stroke(self.state.backgroundStrokeColor, lineWidth: 1)
3330
}
3431
}
3532
.animation(.pokitDissolve, value: state)

0 commit comments

Comments
 (0)