CustomImageView
open class CustomImageView: BaseUIView
CustomImageView is a subclass of BaseUIView. it has all the properties of a UIImageView and it resizes image according to device resolution
-
Inspectable property for drawing a fixed size image - Default value is CGSize.zero. This propert is not considerd when width and height both are zero.
Declaration
Swift
@IBInspectable open var imageFixedSize:CGSize = CGSize.zero; -
Image View Lazy instance for drawing image.
Declaration
Swift
open var imageView:UIImageView? -
Overriden propert to get content mode changes.
Declaration
Swift
override open var contentMode:UIViewContentMode -
Inspectable property for setting image.
Declaration
Swift
@IBInspectable open var image: UIImage?
-
Overridden methed to update layout.
Declaration
Swift
override open func layoutSubviews()
View on GitHub
CustomImageView Class Reference