Skip to content

Commit d735fda

Browse files
shamit05Calvin-Xu
andauthored
Final swiftlint periphery fixes (#58)
# *Final version fixes disables that we had* ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/CS342/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/CS342/.github/blob/main/CONTRIBUTING.md). --------- Co-authored-by: Pinlin [Calvin] Xu <calvinxu806@gmail.com>
1 parent a0477fa commit d735fda

21 files changed

+666
-1317
lines changed

Feedbridge.xcodeproj/project.pbxproj

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
2F1AC9DF2B4E840E00C24973 /* Feedbridge.docc in Sources */ = {isa = PBXBuildFile; fileRef = 2F1AC9DE2B4E840E00C24973 /* Feedbridge.docc */; };
1111
2F3D4ABC2A4E7C290068FB2F /* SpeziScheduler in Frameworks */ = {isa = PBXBuildFile; productRef = 2F3D4ABB2A4E7C290068FB2F /* SpeziScheduler */; };
1212
2F49B7762980407C00BCB272 /* Spezi in Frameworks */ = {isa = PBXBuildFile; productRef = 2F49B7752980407B00BCB272 /* Spezi */; };
13-
2F4E237E2989A2FE0013F3D9 /* OnboardingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F4E237D2989A2FE0013F3D9 /* OnboardingTests.swift */; };
1413
2F4E23832989D51F0013F3D9 /* FeedbridgeTestingSetup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F4E23822989D51F0013F3D9 /* FeedbridgeTestingSetup.swift */; };
15-
2F4E23872989DB360013F3D9 /* ContactsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F4E23862989DB360013F3D9 /* ContactsTests.swift */; };
1614
2F5E32BD297E05EA003432F8 /* FeedbridgeDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F5E32BC297E05EA003432F8 /* FeedbridgeDelegate.swift */; };
1715
2F6025CB29BBE70F0045459E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 2F6025CA29BBE70F0045459E /* GoogleService-Info.plist */; };
1816
2FA0BFED2ACC977500E0EF83 /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 2FA0BFEC2ACC977500E0EF83 /* Localizable.xcstrings */; };
@@ -24,7 +22,6 @@
2422
2FC3439129EE6349002D773C /* AppIcon.png in Resources */ = {isa = PBXBuildFile; fileRef = 2FE5DC2A29EDD78D004B9AB4 /* AppIcon.png */; };
2523
2FC3439229EE634B002D773C /* ConsentDocument.md in Resources */ = {isa = PBXBuildFile; fileRef = 2FE5DC2C29EDD78E004B9AB4 /* ConsentDocument.md */; };
2624
2FC975A82978F11A00BA99FE /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FC975A72978F11A00BA99FE /* HomeView.swift */; };
27-
2FE5DC2629EDD38A004B9AB4 /* Contacts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5DC2529EDD38A004B9AB4 /* Contacts.swift */; };
2825
2FE5DC3529EDD7CA004B9AB4 /* Consent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5DC2F29EDD7CA004B9AB4 /* Consent.swift */; };
2926
2FE5DC3729EDD7CA004B9AB4 /* OnboardingFlow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5DC3129EDD7CA004B9AB4 /* OnboardingFlow.swift */; };
3027
2FE5DC3A29EDD7CA004B9AB4 /* Welcome.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5DC3429EDD7CA004B9AB4 /* Welcome.swift */; };
@@ -51,6 +48,8 @@
5148
35B6309F2D82BEA00096904E /* WeightTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35B6309E2D82BE9B0096904E /* WeightTests.swift */; };
5249
35B630A32D82C0BD0096904E /* DehydrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35B630A22D82C0BA0096904E /* DehydrationTests.swift */; };
5350
35B630A62D82C1020096904E /* WetDiaperTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 35B630A52D82C0FC0096904E /* WetDiaperTests.swift */; };
51+
533241962D8392180004F271 /* FeedbridgeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 533241952D8392180004F271 /* FeedbridgeTests.swift */; };
52+
5332419A2D8394200004F271 /* HealthDetailsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 533241992D83941D0004F271 /* HealthDetailsView.swift */; };
5453
53F30C282D7FBB670077FD21 /* AddDataViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53F30C272D7FBB670077FD21 /* AddDataViewTests.swift */; };
5554
5680DD3E2AB8CD84004E6D4A /* ContributionsTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5680DD3D2AB8CD84004E6D4A /* ContributionsTest.swift */; };
5655
56E708352BB06B7100B08F0A /* SpeziLicense in Frameworks */ = {isa = PBXBuildFile; productRef = 56E708342BB06B7100B08F0A /* SpeziLicense */; };
@@ -60,10 +59,8 @@
6059
5BB4CE322D5B183200DA4CF7 /* AddSingleBabyView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BB4CE312D5B183200DA4CF7 /* AddSingleBabyView.swift */; };
6160
5BC74CDA2D6E19320059AA19 /* AddEntryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BC74CD92D6E19320059AA19 /* AddEntryView.swift */; };
6261
5BD66F352D7EC73D0043D295 /* TestModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BD66F342D7EC73B0043D295 /* TestModels.swift */; };
63-
5BD66F3E2D7ED0650043D295 /* TestFeedbridgeStandard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BD66F3D2D7ED0630043D295 /* TestFeedbridgeStandard.swift */; };
6462
653A2551283387FE005D4D48 /* Feedbridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 653A2550283387FE005D4D48 /* Feedbridge.swift */; };
6563
653A255528338800005D4D48 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 653A255428338800005D4D48 /* Assets.xcassets */; };
66-
653A256228338800005D4D48 /* FeedbridgeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 653A256128338800005D4D48 /* FeedbridgeTests.swift */; };
6764
653A256C28338800005D4D48 /* SchedulerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 653A256B28338800005D4D48 /* SchedulerTests.swift */; };
6865
9733CFC62A8066DE001B7ABC /* SpeziOnboarding in Frameworks */ = {isa = PBXBuildFile; productRef = 2FE5DC8029EDD91D004B9AB4 /* SpeziOnboarding */; };
6966
9739A0C62AD7B5730084BEA5 /* FirebaseStorage in Frameworks */ = {isa = PBXBuildFile; productRef = 9739A0C52AD7B5730084BEA5 /* FirebaseStorage */; };
@@ -98,16 +95,13 @@
9895

9996
/* Begin PBXFileReference section */
10097
2F1AC9DE2B4E840E00C24973 /* Feedbridge.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = Feedbridge.docc; sourceTree = "<group>"; };
101-
2F4E237D2989A2FE0013F3D9 /* OnboardingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardingTests.swift; sourceTree = "<group>"; };
10298
2F4E23822989D51F0013F3D9 /* FeedbridgeTestingSetup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedbridgeTestingSetup.swift; sourceTree = "<group>"; };
103-
2F4E23862989DB360013F3D9 /* ContactsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactsTests.swift; sourceTree = "<group>"; };
10499
2F5E32BC297E05EA003432F8 /* FeedbridgeDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedbridgeDelegate.swift; sourceTree = "<group>"; };
105100
2F6025CA29BBE70F0045459E /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
106101
2FA0BFEC2ACC977500E0EF83 /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = "<group>"; };
107102
2FAEC07F297F583900C11C42 /* Feedbridge.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Feedbridge.entitlements; sourceTree = "<group>"; };
108103
2FC94CD4298B0A1D009C8209 /* Feedbridge.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Feedbridge.xctestplan; sourceTree = "<group>"; };
109104
2FC975A72978F11A00BA99FE /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = "<group>"; };
110-
2FE5DC2529EDD38A004B9AB4 /* Contacts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Contacts.swift; sourceTree = "<group>"; };
111105
2FE5DC2A29EDD78D004B9AB4 /* AppIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = AppIcon.png; sourceTree = "<group>"; };
112106
2FE5DC2C29EDD78E004B9AB4 /* ConsentDocument.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = ConsentDocument.md; sourceTree = "<group>"; };
113107
2FE5DC2F29EDD7CA004B9AB4 /* Consent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Consent.swift; sourceTree = "<group>"; };
@@ -132,6 +126,8 @@
132126
35E52D3E2D794A77005A6BB7 /* FeedsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedsView.swift; sourceTree = "<group>"; };
133127
35E52E012D7971EC005A6BB7 /* WetDiaperCharts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WetDiaperCharts.swift; sourceTree = "<group>"; };
134128
35E52E032D79727C005A6BB7 /* WetDiapersView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WetDiapersView.swift; sourceTree = "<group>"; };
129+
533241952D8392180004F271 /* FeedbridgeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedbridgeTests.swift; sourceTree = "<group>"; };
130+
533241992D83941D0004F271 /* HealthDetailsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HealthDetailsView.swift; sourceTree = "<group>"; };
135131
53C427AB2D76496100EC9E29 /* WeightsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeightsView.swift; sourceTree = "<group>"; };
136132
53F30C272D7FBB670077FD21 /* AddDataViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddDataViewTests.swift; sourceTree = "<group>"; };
137133
5680DD3D2AB8CD84004E6D4A /* ContributionsTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContributionsTest.swift; sourceTree = "<group>"; };
@@ -140,12 +136,10 @@
140136
5BB4CE312D5B183200DA4CF7 /* AddSingleBabyView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddSingleBabyView.swift; sourceTree = "<group>"; };
141137
5BC74CD92D6E19320059AA19 /* AddEntryView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddEntryView.swift; sourceTree = "<group>"; };
142138
5BD66F342D7EC73B0043D295 /* TestModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestModels.swift; sourceTree = "<group>"; };
143-
5BD66F3D2D7ED0630043D295 /* TestFeedbridgeStandard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestFeedbridgeStandard.swift; sourceTree = "<group>"; };
144139
653A254D283387FE005D4D48 /* Feedbridge.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Feedbridge.app; sourceTree = BUILT_PRODUCTS_DIR; };
145140
653A2550283387FE005D4D48 /* Feedbridge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Feedbridge.swift; sourceTree = "<group>"; };
146141
653A255428338800005D4D48 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
147142
653A255D28338800005D4D48 /* FeedbridgeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FeedbridgeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
148-
653A256128338800005D4D48 /* FeedbridgeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedbridgeTests.swift; sourceTree = "<group>"; };
149143
653A256728338800005D4D48 /* FeedbridgeUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FeedbridgeUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
150144
653A256B28338800005D4D48 /* SchedulerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SchedulerTests.swift; sourceTree = "<group>"; };
151145
653A258928339462005D4D48 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -226,14 +220,6 @@
226220
path = "Supporting Files";
227221
sourceTree = "<group>";
228222
};
229-
2FE5DC2729EDD38D004B9AB4 /* Contacts */ = {
230-
isa = PBXGroup;
231-
children = (
232-
2FE5DC2529EDD38A004B9AB4 /* Contacts.swift */,
233-
);
234-
path = Contacts;
235-
sourceTree = "<group>";
236-
};
237223
2FE5DC2829EDD398004B9AB4 /* Onboarding */ = {
238224
isa = PBXGroup;
239225
children = (
@@ -285,6 +271,7 @@
285271
5B0E57762D5C311B002AC4BB /* Views */ = {
286272
isa = PBXGroup;
287273
children = (
274+
533241992D83941D0004F271 /* HealthDetailsView.swift */,
288275
358B23B92D7D974800D60CF6 /* Dashboard */,
289276
5BC74CD92D6E19320059AA19 /* AddEntryView.swift */,
290277
35B62D5C2D80C20C0096904E /* SettingsView.swift */,
@@ -328,7 +315,6 @@
328315
2FF53D8C2A8729D600042B76 /* FeedbridgeStandard.swift */,
329316
2F4E23822989D51F0013F3D9 /* FeedbridgeTestingSetup.swift */,
330317
A9720E412ABB68B300872D23 /* Account */,
331-
2FE5DC2729EDD38D004B9AB4 /* Contacts */,
332318
A9A3DCC62C75CB8D00FC9B69 /* Firestore */,
333319
2FE5DC2829EDD398004B9AB4 /* Onboarding */,
334320
2FE5DC2D29EDD792004B9AB4 /* Resources */,
@@ -342,9 +328,8 @@
342328
653A256028338800005D4D48 /* FeedbridgeTests */ = {
343329
isa = PBXGroup;
344330
children = (
345-
5BD66F3D2D7ED0630043D295 /* TestFeedbridgeStandard.swift */,
331+
533241952D8392180004F271 /* FeedbridgeTests.swift */,
346332
5BD66F342D7EC73B0043D295 /* TestModels.swift */,
347-
653A256128338800005D4D48 /* FeedbridgeTests.swift */,
348333
);
349334
path = FeedbridgeTests;
350335
sourceTree = "<group>";
@@ -360,9 +345,7 @@
360345
35B62F792D8257E80096904E /* AddBabyTests.swift */,
361346
35B630452D82A20F0096904E /* StoolTests.swift */,
362347
53F30C272D7FBB670077FD21 /* AddDataViewTests.swift */,
363-
2F4E237D2989A2FE0013F3D9 /* OnboardingTests.swift */,
364348
653A256B28338800005D4D48 /* SchedulerTests.swift */,
365-
2F4E23862989DB360013F3D9 /* ContactsTests.swift */,
366349
5680DD3D2AB8CD84004E6D4A /* ContributionsTest.swift */,
367350
);
368351
path = FeedbridgeUITests;
@@ -600,6 +583,7 @@
600583
2FE5DC3729EDD7CA004B9AB4 /* OnboardingFlow.swift in Sources */,
601584
2F1AC9DF2B4E840E00C24973 /* Feedbridge.docc in Sources */,
602585
2FF53D8D2A8729D600042B76 /* FeedbridgeStandard.swift in Sources */,
586+
5332419A2D8394200004F271 /* HealthDetailsView.swift in Sources */,
603587
5B2B9CB92D52F9BF0047A55C /* AddBabyView.swift in Sources */,
604588
5BB4CE322D5B183200DA4CF7 /* AddSingleBabyView.swift in Sources */,
605589
A9720E432ABB68CC00872D23 /* AccountSetupHeader.swift in Sources */,
@@ -610,17 +594,15 @@
610594
5BC74CDA2D6E19320059AA19 /* AddEntryView.swift in Sources */,
611595
35B62D5D2D80C20C0096904E /* SettingsView.swift in Sources */,
612596
653A2551283387FE005D4D48 /* Feedbridge.swift in Sources */,
613-
2FE5DC2629EDD38A004B9AB4 /* Contacts.swift in Sources */,
614597
);
615598
runOnlyForDeploymentPostprocessing = 0;
616599
};
617600
653A255928338800005D4D48 /* Sources */ = {
618601
isa = PBXSourcesBuildPhase;
619602
buildActionMask = 2147483647;
620603
files = (
621-
5BD66F3E2D7ED0650043D295 /* TestFeedbridgeStandard.swift in Sources */,
622-
653A256228338800005D4D48 /* FeedbridgeTests.swift in Sources */,
623604
5BD66F352D7EC73D0043D295 /* TestModels.swift in Sources */,
605+
533241962D8392180004F271 /* FeedbridgeTests.swift in Sources */,
624606
);
625607
runOnlyForDeploymentPostprocessing = 0;
626608
};
@@ -634,10 +616,8 @@
634616
35B630A32D82C0BD0096904E /* DehydrationTests.swift in Sources */,
635617
35B630A62D82C1020096904E /* WetDiaperTests.swift in Sources */,
636618
5B8425C82D829FC1009B00BC /* AddEntryTests.swift in Sources */,
637-
2F4E23872989DB360013F3D9 /* ContactsTests.swift in Sources */,
638619
53F30C282D7FBB670077FD21 /* AddDataViewTests.swift in Sources */,
639620
35B6309F2D82BEA00096904E /* WeightTests.swift in Sources */,
640-
2F4E237E2989A2FE0013F3D9 /* OnboardingTests.swift in Sources */,
641621
653A256C28338800005D4D48 /* SchedulerTests.swift in Sources */,
642622
35B62F7A2D8257EC0096904E /* AddBabyTests.swift in Sources */,
643623
);

Feedbridge/Contacts/Contacts.swift

Lines changed: 0 additions & 77 deletions
This file was deleted.

Feedbridge/FeedbridgeStandard.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//
88
// swiftlint:disable type_body_length
99
// swiftlint:disable file_length
10+
//
11+
// Reaoning for swiftlint disable rules: https://github.com/orgs/CS342/discussions/181
1012

1113
import FirebaseAuth
1214
@preconcurrency import FirebaseFirestore

Feedbridge/Models/Baby.swift

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,35 @@
99
//
1010
// SPDX-License-Identifier: MIT
1111
//
12-
// swiftlint:disable file_types_order
1312

1413
@preconcurrency import FirebaseFirestore
1514
import Foundation
1615

17-
// periphery:ignore
16+
struct FeedEntries: Codable, Identifiable, Sendable {
17+
@DocumentID var id: String?
18+
var feedEntries: [FeedEntry]
19+
}
20+
21+
struct WeightEntries: Codable, Identifiable, Sendable {
22+
@DocumentID var id: String?
23+
var weightEntries: [WeightEntry]
24+
}
25+
26+
struct StoolEntries: Codable, Identifiable, Sendable {
27+
@DocumentID var id: String?
28+
var stoolEntries: [StoolEntry]
29+
}
30+
31+
struct WetDiaperEntries: Codable, Identifiable, Sendable {
32+
@DocumentID var id: String?
33+
var wetDiaperEntries: [WetDiaperEntry]
34+
}
35+
36+
struct DehydrationChecks: Codable, Identifiable, Sendable {
37+
@DocumentID var id: String?
38+
var dehydrationChecks: [DehydrationCheck]
39+
}
40+
1841
/// Represents a baby and their associated health tracking data
1942
struct Baby: Identifiable, Codable, Sendable, Equatable {
2043
/// Unique identifier for the baby
@@ -82,28 +105,3 @@ struct Baby: Identifiable, Codable, Sendable, Equatable {
82105
lhs.dateOfBirth == rhs.dateOfBirth
83106
}
84107
}
85-
86-
struct FeedEntries: Codable, Identifiable, Sendable {
87-
@DocumentID var id: String?
88-
var feedEntries: [FeedEntry]
89-
}
90-
91-
struct WeightEntries: Codable, Identifiable, Sendable {
92-
@DocumentID var id: String?
93-
var weightEntries: [WeightEntry]
94-
}
95-
96-
struct StoolEntries: Codable, Identifiable, Sendable {
97-
@DocumentID var id: String?
98-
var stoolEntries: [StoolEntry]
99-
}
100-
101-
struct WetDiaperEntries: Codable, Identifiable, Sendable {
102-
@DocumentID var id: String?
103-
var wetDiaperEntries: [WetDiaperEntry]
104-
}
105-
106-
struct DehydrationChecks: Codable, Identifiable, Sendable {
107-
@DocumentID var id: String?
108-
var dehydrationChecks: [DehydrationCheck]
109-
}

Feedbridge/Models/FeedEntry.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,17 @@
1212
import Foundation
1313

1414
// Represents method of feeding
15-
// periphery:ignore
1615
enum FeedType: String, Codable {
1716
case directBreastfeeding
1817
case bottle
1918
}
2019

2120
// Represents the type of milk used
22-
// periphery:ignore
2321
enum MilkType: String, Codable {
2422
case breastmilk
2523
case formula
2624
}
2725

28-
// periphery:ignore
2926
/// Stores feeding-related data
3027
struct FeedEntry: Identifiable, Codable, Sendable {
3128
/// Use UUID to generate a unique identifier for Firebase

0 commit comments

Comments
 (0)