Skip to content

Commit 4609469

Browse files
committed
ui: TodoEditorView에 Todo 데이터를 업로드하면 툴바 우측 버튼 위치에 ProgressView가 보이도록 수정
1 parent 1cd567c commit 4609469

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

Application/DevLogPresentation/Sources/Home/Editor/TodoEditorView.swift

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,19 @@ struct TodoEditorView: View {
6767
Image(systemName: "info.circle")
6868
}
6969
}
70-
ToolbarTrailingButton {
71-
submit()
70+
if store.isLoading {
71+
if #available(iOS 26.0, *) {
72+
ToolbarSpacer(.fixed, placement: .topBarTrailing)
73+
}
74+
ToolbarItem(placement: .topBarTrailing) {
75+
ProgressView()
76+
}
77+
} else {
78+
ToolbarTrailingButton {
79+
submit()
80+
}
81+
.disabled(!store.isReadyToSubmit)
7282
}
73-
.disabled(!store.isReadyToSubmit || store.isLoading)
7483
}
7584
.alert($store.scope(state: \.alert, action: \.alert))
7685
}

0 commit comments

Comments
 (0)