mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 21:01:43 +03:00
refactor(observation): migrate SwiftUI state
This commit is contained in:
@@ -2,11 +2,11 @@ import SwiftUI
|
||||
|
||||
@MainActor
|
||||
public struct ClawdisChatView: View {
|
||||
@StateObject private var viewModel: ClawdisChatViewModel
|
||||
@State private var viewModel: ClawdisChatViewModel
|
||||
@State private var scrollerBottomID = UUID()
|
||||
|
||||
public init(viewModel: ClawdisChatViewModel) {
|
||||
self._viewModel = StateObject(wrappedValue: viewModel)
|
||||
self._viewModel = State(initialValue: viewModel)
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
|
||||
Reference in New Issue
Block a user