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() {