From 225efc34e4553078de123c607b5b1b1b9e01ea63 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 21 Sep 2023 23:03:28 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EB=B0=A9=20?= =?UTF-8?q?=ED=9B=84=EC=9B=90=20=EB=8B=A4=EC=9D=B4=EC=96=BC=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20-=20=EC=BA=94=20=EB=B6=88=EB=9F=AC=EC=98=A4?= =?UTF-8?q?=EB=8A=94=20=EB=B0=A9=EC=8B=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Content/Detail/LiveRoomDonationDialogView.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SodaLive/Sources/Content/Detail/LiveRoomDonationDialogView.swift b/SodaLive/Sources/Content/Detail/LiveRoomDonationDialogView.swift index 37a6628..11db963 100644 --- a/SodaLive/Sources/Content/Detail/LiveRoomDonationDialogView.swift +++ b/SodaLive/Sources/Content/Detail/LiveRoomDonationDialogView.swift @@ -12,11 +12,12 @@ import Kingfisher struct LiveRoomDonationDialogView: View { + @AppStorage("can") private var can: Int = UserDefaults.int(forKey: .can) + @State private var donationCan = "" @State private var donationMessage = "" @State private var isShowErrorPopup = false @State private var errorMessage = "" - @State private var can = 0 @Binding var isShowing: Bool let isAudioContentDonation: Bool @@ -243,9 +244,6 @@ struct LiveRoomDonationDialogView: View { } .offset(y: isAudioContentDonation ? 0 : 0 - keyboardHandler.keyboardHeight) } - .onAppear { - self.can = UserDefaults.int(forKey: .can) - } } func limitText() {