오디션

- 오디션 알림 받기 설정 추가
This commit is contained in:
Yu Sung
2025-01-09 01:02:08 +09:00
parent 7481637fbb
commit 6d5257e1c0
11 changed files with 83 additions and 3 deletions

View File

@@ -10,11 +10,17 @@ import SwiftUI
struct AuditionView: View {
@StateObject var viewModel = AuditionViewModel()
@AppStorage("isAuditionNotification") private var isAuditionNotification: Bool = UserDefaults.bool(forKey: .isAuditionNotification)
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
VStack(spacing: 0) {
HomeNavigationBar(title: "오디션") {}
HomeNavigationBar(title: "오디션") {
Image(isAuditionNotification ? "btn_audition_notification_selected" : "btn_audition_notification_normal")
.onTapGesture {
viewModel.updateNotificationSettings()
}
}
ScrollView(.vertical, showsIndicators: false) {
LazyVStack(alignment: .leading, spacing: 25) {