Skip to content

Commit 2706c05

Browse files
committed
Added sendable comformance to all structs in preperation for Swift 6
1 parent 0995b86 commit 2706c05

36 files changed

+36
-36
lines changed

Sources/SwiftVue/Attendance/Absence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct Absence: Hashable, Codable, Identifiable {
10+
public struct Absence: Hashable, Codable, Identifiable, Sendable {
1111
public var id: UUID
1212
public var absenceDate: Date
1313
public var reason: String

Sources/SwiftVue/Attendance/Attendance.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct Attendance: Hashable, Codable, Identifiable {
10+
public struct Attendance: Hashable, Codable, Identifiable, Sendable {
1111
public var id: UUID
1212
public var type: String
1313
public var startPeriod: String

Sources/SwiftVue/Attendance/Period.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct Period: Hashable, Codable, Identifiable {
10+
public struct Period: Hashable, Codable, Identifiable, Sendable {
1111
public var id: UUID
1212
public var number: Int
1313
public var name: String

Sources/SwiftVue/Attendance/PeriodTotal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct PeriodTotal: Hashable, Codable, Identifiable {
10+
public struct PeriodTotal: Hashable, Codable, Identifiable, Sendable {
1111
public var id: UUID
1212
public var number: Int
1313
public var total: Int

Sources/SwiftVue/Calendar/EventInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct EventInfo: Hashable, Codable, Identifiable {
10+
public struct EventInfo: Hashable, Codable, Identifiable, Sendable {
1111
public var id: UUID
1212
public var date: Date
1313
public var title: String

Sources/SwiftVue/Calendar/StudentCalendar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct StudentCalendar: Hashable, Codable, Identifiable {
10+
public struct StudentCalendar: Hashable, Codable, Identifiable, Sendable {
1111
public var id: UUID
1212
public var schoolBeginDate: Date
1313
public var schoolEndDate: Date

Sources/SwiftVue/Credentials/Credentials.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct Credentials: Hashable, Codable {
10+
public struct Credentials: Hashable, Codable, Sendable {
1111
public init(username: String, password: String, districtURL: String) {
1212
self.username = username
1313
self.password = password

Sources/SwiftVue/DistrictInfo/DistrictInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct DistrictInfo: Hashable, Codable, Identifiable {
10+
public struct DistrictInfo: Hashable, Codable, Identifiable, Sendable {
1111
public var id: UUID
1212
public var districtID: String
1313
public var name: String

Sources/SwiftVue/DocumentInfo/DocumentInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct DocumentInfo: Hashable, Codable, Identifiable {
10+
public struct DocumentInfo: Hashable, Codable, Identifiable, Sendable {
1111
public var id: UUID
1212
public var documentGU: String
1313
public var name: String

Sources/SwiftVue/Error/Error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public enum SwiftVueError: Error {
10+
public enum SwiftVueError: Error, Sendable {
1111
case invalidResponse
1212
case couldNotDecodeResponse
1313
case invalidCredentials

0 commit comments

Comments
 (0)