ViewNode
public struct ViewNode
The node for view which need not be uniquely identified like header or footer.
Erase the type of component and wrapping it.
This works as an intermediary for DifferenceKit
.
-
A type-erased component which wrapped in
self
.Declaration
Swift
public var component: AnyComponent
-
Create a node wrapping given component.
Declaration
Swift
@inlinable public init<C>(_ component: C) where C : Component
-
Returns a base instance of component casted as given type if possible.
Declaration
Swift
@inlinable public func component<T>(as _: T.Type) -> T?
Return Value
A casted base instance.
-
Indicate whether the content of
self
is equals to the content of the given source value.Declaration
Swift
@inlinable public func isContentEqual(to source: ViewNode) -> Bool
-
A textual representation of this instance, suitable for debugging.
Declaration
Swift
@inlinable public var debugDescription: String { get }