-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWidgetTodoSnapshot.swift
More file actions
39 lines (36 loc) · 877 Bytes
/
Copy pathWidgetTodoSnapshot.swift
File metadata and controls
39 lines (36 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// WidgetTodoSnapshot.swift
// DevLogCore
//
// Created by opfic on 5/18/26.
//
import Foundation
public struct WidgetTodoSnapshot: Equatable, Sendable {
public let id: String
public let number: Int?
public let title: String
public let isPinned: Bool
public let createdAt: Date
public let completedAt: Date?
public let deletedAt: Date?
public let dueDate: Date?
public init(
id: String,
number: Int?,
title: String,
isPinned: Bool,
createdAt: Date,
completedAt: Date?,
deletedAt: Date?,
dueDate: Date?
) {
self.id = id
self.number = number
self.title = title
self.isPinned = isPinned
self.createdAt = createdAt
self.completedAt = completedAt
self.deletedAt = deletedAt
self.dueDate = dueDate
}
}