Skip to main content

ChatChannelListController.ObservableObject

A wrapper object for ChannelListController type which makes it possible to use the controller comfortably in SwiftUI.

public class ObservableObject: SwiftUI.ObservableObject 

Inheritance

ChatChannelListControllerDelegate, SwiftUI.ObservableObject

Properties

controller

The underlying controller. You can still access it and call methods on it.

public let controller: ChatChannelListController

channels

The channels matching the query.

@Published public private(set) var channels: LazyCachedMapCollection<ChatChannel> = []

state

The current state of the Controller.

@Published public private(set) var state: DataController.State

Methods

controller(_:didChangeChannels:)

public func controller(
_ controller: ChatChannelListController,
didChangeChannels changes: [ListChange<ChatChannel>]
)

controller(_:didChangeState:)

public func controller(_ controller: DataController, didChangeState state: DataController.State) 

Did you find this page helpful?