AcaMate_iOS/AcaMate/3. ViewModel/ChatViewModel.swift

23 lines
382 B
Swift

//
// ChatViewModel.swift
// AcaMate
//
// Created by TAnine on 2/17/25.
//
import SwiftUI
final class ChatVM: ObservableObject {
@Published var vm: ChatViewModel?
}
class ChatViewModel: ObservableObject {
private let appVM: AppViewModel
@Published var messages: [ChatMesage] = []
init(_ appVM: AppViewModel) {
self.appVM = appVM
}
}