New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CIS-1554] Make SendButton
animation overridable
#1781
[CIS-1554] Make SendButton
animation overridable
#1781
Conversation
SendButton
animation overridable
Codecov Report
@@ Coverage Diff @@
## develop #1781 +/- ##
===========================================
- Coverage 85.41% 85.39% -0.03%
===========================================
Files 234 234
Lines 11261 11261
===========================================
- Hits 9619 9616 -3
- Misses 1642 1645 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -28,4 +24,13 @@ open class SendButton: _Button, AppearanceProvider { | |||
let disabledStateImage = appearance.images.sendArrow.tinted(with: buttonColor) | |||
setImage(disabledStateImage, for: .disabled) | |||
} | |||
|
|||
/// The animation when the `isEnabled` state changes. | |||
open func isEnabledChangeAnimation() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense for this public function to pass in the isEnabled
param? Approving anyway more of a small suggestion :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.. yes it kinda makes sense 👍
* Make SendButton animation overridable * Update CHANGELOG.md * Feedback changes
🔗 Issue Link
CIS-1554
🎯 Goal
Currently, the animation of SendButton is done on the didSet observer of the
SendButton.isEnabled
, the problem with this is that thedidSet
implementation is not overridable. We need to extract the animation to a different function so that the customer can override it.🛠 Implementation
Extract the animation to a different function so that the customer can override it.
🎨 Changes
N/A
🧪 Testing
N/A
☑️ Checklist