allow server parameters
This commit is contained in:
parent
2ad329949a
commit
b6cf238d02
@ -26,6 +26,7 @@
|
|||||||
public var localBundle: Bundle?
|
public var localBundle: Bundle?
|
||||||
public var cornerRadius: CGFloat?
|
public var cornerRadius: CGFloat?
|
||||||
public var clipsImage: Bool?
|
public var clipsImage: Bool?
|
||||||
|
public var allowServerParameters: Bool?
|
||||||
public var shouldMaskRecordedView: Bool? = false
|
public var shouldMaskRecordedView: Bool? = false
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -56,5 +57,6 @@
|
|||||||
case cornerRadius
|
case cornerRadius
|
||||||
case clipsImage
|
case clipsImage
|
||||||
case shouldMaskRecordedView
|
case shouldMaskRecordedView
|
||||||
|
case allowServerParameters
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -289,7 +289,7 @@
|
|||||||
if shouldLoadImage(withName: imageModel.image, width: width, height: height) {
|
if shouldLoadImage(withName: imageModel.image, width: width, height: height) {
|
||||||
imageView.image = nil
|
imageView.image = nil
|
||||||
imageView.animatedImage = 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 {
|
if let contentMode = imageModel.contentMode {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user