Skip to main content

ChatUserController.ObservableObject

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

public class ObservableObject: SwiftUI.ObservableObject 

Inheritance

ChatUserControllerDelegate, SwiftUI.ObservableObject

Properties

controller

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

public let controller: ChatUserController

user

The user matching the userId.

@Published public private(set) var user: ChatUser?

state

The current state of the controller.

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

Methods

userController(_:didUpdateUser:)

public func userController(
_ controller: ChatUserController,
didUpdateUser change: EntityChange<ChatUser>
)

controller(_:didChangeState:)

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

Did you find this page helpful?