Skip to content

Commit 35b314f

Browse files
authored
Merge pull request #71 from normalengineering/fix/warnings
fix: warnings
2 parents 3f3a2aa + 2132645 commit 35b314f

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎Normal/Services/NavigationCoordinator.swift‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ final class NavigationCoordinator {
7070
}
7171
}
7272

73+
extension NavigationCoordinator {
74+
static let fallback = NavigationCoordinator()
75+
}
76+
7377
extension EnvironmentValues {
74-
@Entry var navigationCoordinator: NavigationCoordinator = .init()
78+
@Entry var navigationCoordinator: NavigationCoordinator = .fallback
7579
}

‎NormalTests/TestSupport/TokenFixtures.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import FamilyControls
22
import Foundation
33
import ManagedSettings
44

5-
enum TokenFixtures {
5+
nonisolated enum TokenFixtures {
66
static func app(_ id: UInt8) -> ApplicationToken {
77
decode(id)
88
}

‎Shared/SharedDTO.swift‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import FamilyControls
22
import Foundation
33

4-
struct TimedUnblockDTO: Codable, Sendable, Identifiable {
4+
nonisolated struct TimedUnblockDTO: Codable, Sendable, Identifiable {
55
let id: String
66
let selectionData: Data
77
let endDate: Date
@@ -37,7 +37,7 @@ struct TimedUnblockDTO: Codable, Sendable, Identifiable {
3737
}
3838
}
3939

40-
struct ScheduleDTO: Codable, Sendable, Identifiable {
40+
nonisolated struct ScheduleDTO: Codable, Sendable, Identifiable {
4141
let id: UUID
4242
let name: String
4343
let selectionData: Data
@@ -78,7 +78,7 @@ struct ScheduleDTO: Codable, Sendable, Identifiable {
7878
}
7979
}
8080

81-
extension ScheduleDTO {
81+
nonisolated extension ScheduleDTO {
8282
var wrapsPastMidnight: Bool {
8383
startHour * 60 + startMinute + durationMinutes >= 24 * 60
8484
}
@@ -105,7 +105,7 @@ extension ScheduleDTO {
105105
}
106106
}
107107

108-
extension FamilyActivitySelection {
108+
nonisolated extension FamilyActivitySelection {
109109
func toData() throws -> Data {
110110
try PropertyListEncoder().encode(self)
111111
}

0 commit comments

Comments
 (0)