Skip to content

Commit

Permalink
add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
caldrian committed Jan 29, 2025
1 parent d299afb commit 539a1e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct BackupRestoreMainView: View {
@State private var isFileImporterPresented = false

var body: some View {
List {
List { // TODO: move this List into `BackupRestoreRootView`
backupSection
restoreSection
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import SwiftUI

struct BackupRestoreRootView: View {

@StateObject var viewModel: BackupRestoreRootViewModel
@StateObject var viewModel: BackupRestoreRootViewModel // TODO: split into two view models

var body: some View {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ final class BackupRestoreRootViewModel: ObservableObject {
backupTask = Task {
defer { backupTask = nil }
do {

// TODO: backup use case

state = .backup(.creatingBackup(progress: 0))
try? await Task.sleep(for: .seconds(0.5))
if Task.isCancelled { throw CancellationError() }
Expand Down

0 comments on commit 539a1e6

Please sign in to comment.