Skip to main content

ChatUserListController.ObservableObject

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

public class ObservableObject: SwiftUI.ObservableObject 

Inheritance

ChatUserListControllerDelegate, SwiftUI.ObservableObject

Properties

controller

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

public let controller: ChatUserListController

users

The users matching the query.

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

state

The current state of the Controller.

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

Methods

controller(_:didChangeUsers:)

public func controller(
_ controller: ChatUserListController,
didChangeUsers changes: [ListChange<ChatUser>]
)

controller(_:didChangeState:)

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

Did you find this page helpful?