allow server parameters

This commit is contained in:
Scott Pfeil 2022-09-20 16:46:33 -04:00
parent 2ad329949a
commit b6cf238d02
2 changed files with 3 additions and 1 deletions

View File

@ -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
}
}

View File

@ -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 {