File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,25 @@ extension CollectionWrappedCell: CalculatableWidthItem where View: CalculatableW
5757 }
5858
5959}
60+
61+ // MARK: - HighlightableItem
62+
63+ extension CollectionWrappedCell : HighlightableItem where View: HighlightableItem {
64+
65+ public func applyUnhighlightedStyle( ) {
66+ nestedView. applyUnhighlightedStyle ( )
67+ }
68+
69+ public func applyHighlightedStyle( ) {
70+ nestedView. applyHighlightedStyle ( )
71+ }
72+
73+ public func applySelectedStyle( ) {
74+ nestedView. applySelectedStyle ( )
75+ }
76+
77+ public func applyDeselectedStyle( ) {
78+ nestedView. applyDeselectedStyle ( )
79+ }
80+
81+ }
Original file line number Diff line number Diff line change @@ -39,3 +39,25 @@ extension TableWrappedCell: CalculatableHeightItem where View: CalculatableHeigh
3939 }
4040
4141}
42+
43+ // MARK: - HighlightableItem
44+
45+ extension TableWrappedCell : HighlightableItem where View: HighlightableItem {
46+
47+ public func applyUnhighlightedStyle( ) {
48+ nestedView. applyUnhighlightedStyle ( )
49+ }
50+
51+ public func applyHighlightedStyle( ) {
52+ nestedView. applyHighlightedStyle ( )
53+ }
54+
55+ public func applySelectedStyle( ) {
56+ nestedView. applySelectedStyle ( )
57+ }
58+
59+ public func applyDeselectedStyle( ) {
60+ nestedView. applyDeselectedStyle ( )
61+ }
62+
63+ }
You can’t perform that action at this time.
0 commit comments