오디션
- 오디션 알림 받기 설정 추가
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user