增加换肤功能
This commit is contained in:
18
TUIKit/TUIRoomKit/Source/Store/Room/RoomReducer.swift
Normal file
18
TUIKit/TUIRoomKit/Source/Store/Room/RoomReducer.swift
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// RoomReducer.swift
|
||||
// TUIRoomKit
|
||||
//
|
||||
// Created by jeremiawang on 2024/8/19.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
let roomReducer = Reducer<RoomInfo>(
|
||||
ReduceOn(RoomActions.updateRoomState, reduce: { state, action in
|
||||
state = action.payload
|
||||
state.isEnteredRoom = true
|
||||
}),
|
||||
ReduceOn(RoomActions.clearRoomState, reduce: { state, action in
|
||||
state = RoomInfo()
|
||||
})
|
||||
)
|
||||
Reference in New Issue
Block a user