Skip to main content

ChatChannelWatcherListController.ObservableObject

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

public class ObservableObject: SwiftUI.ObservableObject 

Inheritance

ChatChannelWatcherListControllerDelegate, SwiftUI.ObservableObject

Properties

controller

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

public let controller: ChatChannelWatcherListController

watchers

The channel members.

@Published public private(set) var watchers: LazyCachedMapCollection<ChatUser> = []

state

The current state of the controller.

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

Methods

channelWatcherListController(_:didChangeWatchers:)

public func channelWatcherListController(
_ controller: ChatChannelWatcherListController,
didChangeWatchers changes: [ListChange<ChatUser>]
)

controller(_:didChangeState:)

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

Did you find this page helpful?