feat: 최근 들은 콘텐츠 로컬 DB 추가

This commit is contained in:
Yu Sung
2025-07-28 22:34:34 +09:00
parent a73cafa08c
commit 70af4cb3dd
10 changed files with 306 additions and 67 deletions

View File

@@ -12,6 +12,7 @@ struct SettingsView: View {
@State private var isShowLogoutAllDeviceDialog = false
@StateObject var viewModel = SettingsViewModel()
@StateObject var recentContentViewModel = RecentContentViewModel()
var body: some View {
let cardWidth = screenSize().width - 26.7
@@ -200,7 +201,10 @@ struct SettingsView: View {
ContentPlayerPlayManager.shared.resetPlayer()
viewModel.logout {
self.isShowLogoutDialog = false
UserDefaults.reset()
recentContentViewModel.truncate()
AppState.shared.isChangeAdultContentVisible = true
AppState.shared.setAppStep(step: .splash)
}