mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
[ASCellNode] focusStyle mapping (#727)
* [ASCellNode] Adds mapping for UITableViewCell focusStyle * Update CHANGELOG.md
This commit is contained in:
parent
ea547270f2
commit
0bb53552b0
@ -1,5 +1,6 @@
|
|||||||
## master
|
## master
|
||||||
* Add your own contributions to the next release on the line below this with your name.
|
* Add your own contributions to the next release on the line below this with your name.
|
||||||
|
- [ASCellNode] Adds mapping for UITableViewCell focusStyle [Alex Hill](https://github.com/alexhillc) [#727](https://github.com/TextureGroup/Texture/pull/727)
|
||||||
- [ASNetworkImageNode] Fix capturing self in the block while loading image in ASNetworkImageNode. [Denis Mororozov](https://github.com/morozkin) [#777](https://github.com/TextureGroup/Texture/pull/777)
|
- [ASNetworkImageNode] Fix capturing self in the block while loading image in ASNetworkImageNode. [Denis Mororozov](https://github.com/morozkin) [#777](https://github.com/TextureGroup/Texture/pull/777)
|
||||||
- [ASTraitCollection] Add new properties of UITraitCollection to ASTraitCollection. [Yevgen Pogribnyi](https://github.com/ypogribnyi)
|
- [ASTraitCollection] Add new properties of UITraitCollection to ASTraitCollection. [Yevgen Pogribnyi](https://github.com/ypogribnyi)
|
||||||
- [ASRectMap] Replace implementation of ASRectTable with a simpler one based on unordered_map.[Scott Goodson](https://github.com/appleguy) [#719](https://github.com/TextureGroup/Texture/pull/719)
|
- [ASRectMap] Replace implementation of ASRectTable with a simpler one based on unordered_map.[Scott Goodson](https://github.com/appleguy) [#719](https://github.com/TextureGroup/Texture/pull/719)
|
||||||
|
|||||||
@ -190,6 +190,12 @@ typedef NS_ENUM(NSUInteger, ASCellNodeVisibilityEvent) {
|
|||||||
*/
|
*/
|
||||||
@property (nonatomic) UITableViewCellSelectionStyle selectionStyle;
|
@property (nonatomic) UITableViewCellSelectionStyle selectionStyle;
|
||||||
|
|
||||||
|
/* @abstract The focus style when a cell is focused
|
||||||
|
* @default UITableViewCellFocusStyleDefault
|
||||||
|
* ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
|
||||||
|
*/
|
||||||
|
@property (nonatomic) UITableViewCellFocusStyle focusStyle;
|
||||||
|
|
||||||
/* @abstract The view used as the background of the cell when it is selected.
|
/* @abstract The view used as the background of the cell when it is selected.
|
||||||
* ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
|
* ASTableView uses these properties when configuring UITableViewCells that host ASCellNodes.
|
||||||
* ASCollectionView uses these properties when configuring UICollectionViewCells that host ASCellNodes.
|
* ASCollectionView uses these properties when configuring UICollectionViewCells that host ASCellNodes.
|
||||||
|
|||||||
@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
// Use UITableViewCell defaults
|
// Use UITableViewCell defaults
|
||||||
_selectionStyle = UITableViewCellSelectionStyleDefault;
|
_selectionStyle = UITableViewCellSelectionStyleDefault;
|
||||||
|
_focusStyle = UITableViewCellFocusStyleDefault;
|
||||||
self.clipsToBounds = YES;
|
self.clipsToBounds = YES;
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|||||||
@ -114,10 +114,10 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
|
|||||||
|
|
||||||
if (node) {
|
if (node) {
|
||||||
self.backgroundColor = node.backgroundColor;
|
self.backgroundColor = node.backgroundColor;
|
||||||
self.selectionStyle = node.selectionStyle;
|
|
||||||
self.selectedBackgroundView = node.selectedBackgroundView;
|
self.selectedBackgroundView = node.selectedBackgroundView;
|
||||||
self.separatorInset = node.separatorInset;
|
self.separatorInset = node.separatorInset;
|
||||||
self.selectionStyle = node.selectionStyle;
|
self.selectionStyle = node.selectionStyle;
|
||||||
|
self.focusStyle = node.focusStyle;
|
||||||
self.accessoryType = node.accessoryType;
|
self.accessoryType = node.accessoryType;
|
||||||
|
|
||||||
// the following ensures that we clip the entire cell to it's bounds if node.clipsToBounds is set (the default)
|
// the following ensures that we clip the entire cell to it's bounds if node.clipsToBounds is set (the default)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user