feat(chat-room) 채팅방 골격 추가
This commit is contained in:
21
SodaLive/Sources/Chat/Talk/Room/ChatRoomViewModel.swift
Normal file
21
SodaLive/Sources/Chat/Talk/Room/ChatRoomViewModel.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// ChatRoomViewModel.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 9/2/25.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Combine
|
||||
import Moya
|
||||
|
||||
final class ChatRoomViewModel: ObservableObject {
|
||||
// MARK: - Published State
|
||||
@Published var isLoading: Bool = false
|
||||
@Published var errorMessage: String = ""
|
||||
@Published var isShowPopup = false
|
||||
|
||||
// MARK: - Private
|
||||
private let repository = ChatRoomRepository()
|
||||
private var subscription = Set<AnyCancellable>()
|
||||
}
|
||||
Reference in New Issue
Block a user