File tree 2 files changed +7
-6
lines changed
BaseSwiftUI/Presentation/Component
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ struct BaseButton: View {
17
17
Text ( title)
18
18
. foregroundStyle ( isEnabled ? . white : Color . white. opacity ( 0.5 ) )
19
19
. frame ( maxWidth: . infinity, maxHeight: . infinity)
20
+ . transaction { transaction in
21
+ transaction. animation = nil
22
+ }
20
23
}
21
24
. foregroundStyle ( . white)
22
25
. background ( Color ( R . color. primary) )
Original file line number Diff line number Diff line change @@ -53,12 +53,10 @@ struct BaseTextField: View {
53
53
. padding ( . trailing, Spacing . small. value)
54
54
55
55
if !errorMessage. isEmpty {
56
- withAnimation {
57
- Text ( errorMessage)
58
- . foregroundStyle ( . red)
59
- . font ( . footnote)
60
- . frame ( maxWidth: . infinity, alignment: . leading)
61
- }
56
+ Text ( errorMessage)
57
+ . foregroundStyle ( . red)
58
+ . font ( . footnote)
59
+ . frame ( maxWidth: . infinity, alignment: . leading)
62
60
}
63
61
}
64
62
}
You can’t perform that action at this time.
0 commit comments