File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Projects/DSKit/Sources/Modifiers Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments