Skip to main content

ChatChannelMemberListController.ObservableObject

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

public class ObservableObject: SwiftUI.ObservableObject 

Inheritance

ChatChannelMemberListControllerDelegate, SwiftUI.ObservableObject

Properties

controller

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

public let controller: ChatChannelMemberListController

members

The channel members.

@Published public private(set) var members: LazyCachedMapCollection<ChatChannelMember> = []

state

The current state of the controller.

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

Methods

memberListController(_:didChangeMembers:)

public func memberListController(
_ controller: ChatChannelMemberListController,
didChangeMembers changes: [ListChange<ChatChannelMember>]
)

controller(_:didChangeState:)

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

Did you find this page helpful?