| Code-Review | +1 |
performPrimaryActionForRowAtIndexPath:(NSIndexPath*)indexPath {nit for a future CL: You probably also want to support the swipe to delete gesture.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
performPrimaryActionForRowAtIndexPath:(NSIndexPath*)indexPath {nit for a future CL: You probably also want to support the swipe to delete gesture.
Get, I will add the action in the next CL
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Now I ma investigating on the bug: 457710580, I found that `TableViewCellContentView.applyConfiguration`
```
_title.text = _configuration.title;
// _title.textColor =
// _configuration.titleColor ?: [UIColor colorNamed:kTextPrimaryColor];
if (_configuration.attributedTitle) {
_title.attributedText = _configuration.attributedTitle;
}
_title.hidden = !_title.text;
_title.enabled = !_configuration.textDisabled;
_title.lineBreakMode = _configuration.titleLineBreakMode;
_subtitle.text = _configuration.subtitle;
// _subtitle.textColor =
// _configuration.subtitleColor ?: [UIColor colorNamed:kTextSecondaryColor];
if (_configuration.attributedSubtitle) {
_subtitle.attributedText = _configuration.attributedSubtitle;
}
_subtitle.hidden = !_subtitle.text;
_subtitle.enabled = !_configuration.textDisabled;
_subtitle.lineBreakMode = _configuration.subtitleLineBreakMode;
```
The `UIColorNamed` will cause very high cpu usage (it seems that the method has been swizzled), will be over 80% in the sub tread, Anyone why
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Now I ma investigating on the bug: 457710580, I found that `TableViewCellContentView.applyConfiguration`
```
_title.text = _configuration.title;
// _title.textColor =
// _configuration.titleColor ?: [UIColor colorNamed:kTextPrimaryColor];
if (_configuration.attributedTitle) {
_title.attributedText = _configuration.attributedTitle;
}
_title.hidden = !_title.text;
_title.enabled = !_configuration.textDisabled;
_title.lineBreakMode = _configuration.titleLineBreakMode;_subtitle.text = _configuration.subtitle;
// _subtitle.textColor =
// _configuration.subtitleColor ?: [UIColor colorNamed:kTextSecondaryColor];
if (_configuration.attributedSubtitle) {
_subtitle.attributedText = _configuration.attributedSubtitle;
}
_subtitle.hidden = !_subtitle.text;
_subtitle.enabled = !_configuration.textDisabled;
_subtitle.lineBreakMode = _configuration.subtitleLineBreakMode;
```
The `UIColorNamed` will cause very high cpu usage (it seems that the method has been swizzled), will be over 80% in the sub tread, Anyone why
I see that only happen on debug mode.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Can you add a regression test for this bug?
Test added.
performPrimaryActionForRowAtIndexPath:(NSIndexPath*)indexPath {Min Xiongnit for a future CL: You probably also want to support the swipe to delete gesture.
Get, I will add the action in the next CL
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
performPrimaryActionForRowAtIndexPath:(NSIndexPath*)indexPath {Min Xiongnit for a future CL: You probably also want to support the swipe to delete gesture.
Min XiongGet, I will add the action in the next CL
Swipe delete gesture added.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
performPrimaryActionForRowAtIndexPath:(NSIndexPath*)indexPath {Min Xiongnit for a future CL: You probably also want to support the swipe to delete gesture.
Min XiongGet, I will add the action in the next CL
Ewann PelléSwipe delete gesture added.
I think you should split this change in a separate CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |