From b6cf238d025696c9c350f3671a36a3bf2bd74b43 Mon Sep 17 00:00:00 2001 From: Scott Pfeil Date: Tue, 20 Sep 2022 16:46:33 -0400 Subject: [PATCH] allow server parameters --- MVMCoreUI/Atomic/Atoms/Views/ImageViewModel.swift | 2 ++ MVMCoreUI/Atomic/Atoms/Views/LoadImageView.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Atoms/Views/ImageViewModel.swift b/MVMCoreUI/Atomic/Atoms/Views/ImageViewModel.swift index 03c18491..c61739a7 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/ImageViewModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/ImageViewModel.swift @@ -26,6 +26,7 @@ public var localBundle: Bundle? public var cornerRadius: CGFloat? public var clipsImage: Bool? + public var allowServerParameters: Bool? public var shouldMaskRecordedView: Bool? = false //-------------------------------------------------- @@ -56,5 +57,6 @@ case cornerRadius case clipsImage case shouldMaskRecordedView + case allowServerParameters } } diff --git a/MVMCoreUI/Atomic/Atoms/Views/LoadImageView.swift b/MVMCoreUI/Atomic/Atoms/Views/LoadImageView.swift index f3d381bc..780f8829 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/LoadImageView.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/LoadImageView.swift @@ -289,7 +289,7 @@ if shouldLoadImage(withName: imageModel.image, width: width, height: height) { imageView.image = nil imageView.animatedImage = nil - loadImage(withName: imageModel.image, format: imageModel.imageFormat, width: width, height: height, customFallbackImage: imageModel.fallbackImage, localBundle: imageModel.localBundle) + loadImage(withName: imageModel.image, format: imageModel.imageFormat, width: width, height: height, customFallbackImage: imageModel.fallbackImage, allowServerParameters: imageModel.allowServerParameters ?? false, localBundle: imageModel.localBundle) } if let contentMode = imageModel.contentMode {