Component for loading and displaying different images aka SVG/PNG/JPG/JPEG
ImageView
Component that loads and displays images(.svg/.png/.jpg/.jpeg) form asset/file/internet.
Uses SVGKit(https://github.com/SVGKit/SVGKit) library for displaying SVG images.
Uses Kingfisher(https://github.com/onevcat/Kingfisher) library for downloading and caching images.
Usage:
- Install
SVGKitandKingfisherlibraries. - Copy files from
Sourcefolder to the project. - Create new
ImageContainerand add it on some view. - If you layout views programmaticaly you should also call method
setupConstraints()in theviewDidLoad(). - Set an image via suitable setter.
- Enjoy ?