Skip to main content

ChatMessageSearchController.ObservableObject

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

public class ObservableObject: SwiftUI.ObservableObject 

Inheritance

ChatMessageSearchControllerDelegate, SwiftUI.ObservableObject

Properties

controller

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

public let controller: ChatMessageSearchController

messages

The current result of messages.

@Published public private(set) var messages: LazyCachedMapCollection<ChatMessage> = []

state

The current state of the controller.

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

Methods

controller(_:didChangeMessages:)

public func controller(_ controller: ChatMessageSearchController, didChangeMessages changes: [ListChange<ChatMessage>]) 

controller(_:didChangeState:)

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

Did you find this page helpful?