Skip to content

Commit b58eff5

Browse files
committed
style: 변수 및 타입명 변경
1 parent 610d185 commit b58eff5

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

DevLog/Presentation/ViewModel/TodayViewModel.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class TodayViewModel: Store {
2222
let items: [TodayTodoItem]
2323
}
2424

25-
struct SectionStore {
25+
struct SectionCollection {
2626
var focused: [TodayTodoItem] = []
2727
var overdue: [TodayTodoItem] = []
2828
var dueSoon: [TodayTodoItem] = []
@@ -301,39 +301,39 @@ private extension TodayViewModel {
301301

302302
func groupedSectionItems(
303303
from items: [TodayTodoItem]
304-
) -> SectionStore {
304+
) -> SectionCollection {
305305
let startOfToday = calendar.startOfDay(for: Date())
306306
guard let windowEnd = calendar.date(byAdding: .day, value: upcomingWindowDays, to: startOfToday) else {
307-
return SectionStore(
307+
return SectionCollection(
308308
focused: items.filter(\.isPinned),
309309
unscheduled: items.filter { !$0.isPinned && $0.dueDate == nil }
310310
)
311311
}
312312

313-
var store = SectionStore()
313+
var collection = SectionCollection()
314314

315315
for item in items {
316316
if item.isPinned {
317-
store.focused.append(item)
317+
collection.focused.append(item)
318318
continue
319319
}
320320

321321
guard let dueDate = item.dueDate else {
322-
store.unscheduled.append(item)
322+
collection.unscheduled.append(item)
323323
continue
324324
}
325325

326326
let dueDay = calendar.startOfDay(for: dueDate)
327327
if dueDay < startOfToday {
328-
store.overdue.append(item)
328+
collection.overdue.append(item)
329329
} else if dueDay <= windowEnd {
330-
store.dueSoon.append(item)
330+
collection.dueSoon.append(item)
331331
} else {
332-
store.later.append(item)
332+
collection.later.append(item)
333333
}
334334
}
335335

336-
return store
336+
return collection
337337
}
338338

339339
func isOverdue(_ item: TodayTodoItem) -> Bool {

0 commit comments

Comments
 (0)