Skip to content

Commit

Permalink
#123 feat: dataSource 초기값을 UseCase를 통해 가져오도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
LEEYOONJONG committed Nov 30, 2022
1 parent 6d2002f commit 7cbf069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Segno/Segno/Presentation/ViewModel/SettingsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import Foundation
import RxSwift

final class SettingsViewModel {
let dataSource = Observable<[SettingsCellModel]>.just([
lazy var dataSource = Observable<[SettingsCellModel]>.just([
.nickname,
.settingsSwitch(title: "음악 자동 재생", isOn: true), // TODO: isOn은 로컬 디비로부터 불러와야 합니다.
.settingsSwitch(title: "음악 자동 재생", isOn: useCase.getAutoPlayMode()), // TODO: isOn은 로컬 디비로부터 불러와야 합니다.
.settingsActionSheet(title: "다크 모드")
])

Expand Down

0 comments on commit 7cbf069

Please sign in to comment.