From d728c9148cfc10f69fff2f0ce7e3c68f343ce71f Mon Sep 17 00:00:00 2001 From: JZDesign Date: Sat, 22 Mar 2025 21:05:38 -0500 Subject: [PATCH 1/2] update so images load in demo app. --- Sources/Validation/View/FeatureDetailView.swift | 3 +++ Tests/ValidationTests/JSON/Sample.JSON | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/Validation/View/FeatureDetailView.swift b/Sources/Validation/View/FeatureDetailView.swift index 0f62966..35c25a7 100644 --- a/Sources/Validation/View/FeatureDetailView.swift +++ b/Sources/Validation/View/FeatureDetailView.swift @@ -66,6 +66,9 @@ struct FeatureDetailView: View { .aspectRatio(contentMode: .fit) .frame(minWidth: 300, minHeight: 300) .frame(maxWidth: .infinity) + .onAppear { + print(image) + } } } } diff --git a/Tests/ValidationTests/JSON/Sample.JSON b/Tests/ValidationTests/JSON/Sample.JSON index 9aec014..562ed91 100644 --- a/Tests/ValidationTests/JSON/Sample.JSON +++ b/Tests/ValidationTests/JSON/Sample.JSON @@ -12,7 +12,7 @@ "content": "Just my luck, no ice. You know what? It is beets. I've crashed into a beet truck. Hey, take a look at the earthlings. Goodbye! So you two dig up, dig up dinosaurs? Forget the fat lady! You're obsessed with the fat lady! Drive us out of here! Do you have any idea how long it takes those cups to decompose.", "createdAt": "2023-02-09", "id": "DAB58000-2EFA-4590-B0B8-557D8F30FA29", - "images": ["data:one","data:two"], + "images": ["https://raw.githubusercontent.com/JZDesign/Validation/refs/heads/main/docs/img/Main_Screen.png","https://raw.githubusercontent.com/JZDesign/Validation/refs/heads/main/docs/img/Content.png"], "listRowAccentColor": "#AA3333", "status": "ideation", "title": "Mark significant dates" @@ -29,7 +29,7 @@ "content": "What do they got in there? King Kong? Remind me to thank John for a lovely weekend. Yes, Yes, without the oops! Do you have any idea how long it takes those cups to decompose. We gotta burn the rain forest, dump toxic waste, pollute the air, and rip up the OZONE! 'Cause maybe if we screw up this planet enough, they won't want it anymore!", "createdAt": "2023-02-11", "id": "5556E88C-13C6-477B-8503-355364D993E9", - "images": ["data:one","data:two"], + "images": ["https://raw.githubusercontent.com/JZDesign/Validation/refs/heads/main/docs/img/Main_Screen.png","https://raw.githubusercontent.com/JZDesign/Validation/refs/heads/main/docs/img/Content.png"], "status": "ideation", "title": "Widgets and Complications" }, From 0434a3e0b76d42ce5a5fc1bbbbf1422140a342ff Mon Sep 17 00:00:00 2001 From: JZDesign Date: Sat, 22 Mar 2025 21:28:18 -0500 Subject: [PATCH 2/2] String comparing --- Tests/ValidationTests/NewFeatureSerializationTests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/ValidationTests/NewFeatureSerializationTests.swift b/Tests/ValidationTests/NewFeatureSerializationTests.swift index eda1d61..ef70149 100644 --- a/Tests/ValidationTests/NewFeatureSerializationTests.swift +++ b/Tests/ValidationTests/NewFeatureSerializationTests.swift @@ -26,6 +26,7 @@ extension String { replacingOccurrences(of: " ", with: "") .replacingOccurrences(of: "\n", with: "") .replacingOccurrences(of: ": ", with: ":") + .replacingOccurrences(of: "\\/", with: "/") } }