// // LiveRoomDonationMessageDialog.swift // SodaLive // // Created by klaus on 2023/08/15. // import SwiftUI struct LiveRoomDonationMessageDialog: View { @StateObject var viewModel: LiveRoomViewModel @Binding var isShowing: Bool @State var creatorId = 0 var body: some View { ZStack { Color.black .opacity(0.7) .ignoresSafeArea() .onTapGesture { hideKeyboard() } VStack(spacing: 0) { HStack(spacing: 0) { Text("후원 히스토리") .appFont(size: 14.7, weight: .bold) .foregroundColor(Color(hex: "eeeeee")) Text("(\(viewModel.donationMessageCount))") .appFont(size: 14.7, weight: .medium) .foregroundColor(Color(hex: "eeeeee")) Spacer() Text("닫기") .appFont(size: 14.7, weight: .light) .foregroundColor(Color(hex: "eeeeee")) .onTapGesture { isShowing = false } } ScrollView { if viewModel.donationMessageList.count > 0 { LazyVStack(spacing: 10.7) { ForEach(0..