TKUIHomeComponentItem
public protocol TKUIHomeComponentItem
This is the item
that will be used in the context of
RxTableViewSectionedAnimatedDataSource
-
This is a string that will be used by
RxTableViewSectionedAnimatedDataSource
to determine if two items are identical when animating cells in and out of a table view.Declaration
Swift
var identity: String { get }
-
equalityToken
Default implementationPseudo-equality, used to determine if an item has changed. Defaults to just
identity
.Default Implementation
Declaration
Swift
var equalityToken: String { get }
-
canEdit
Default implementationThis will be used by
RxTableViewSectionedAnimatedDataSource
to determine if an item at a specific index path can be edited. Defaults tofalse
.Default Implementation
Declaration
Swift
var canEdit: Bool { get }
-
isAction
Default implementationThis indicates it the item triggers an action. It can be used to determine if an UI element, such as a row in a table view should be treated as a button when supporting accessibility. Defaults to
true
.Default Implementation
Declaration
Swift
var isAction: Bool { get }