screenshot of AlamofireImage


AlamofireImage is an image component library for Alamofire


AlamofireImage is an image component library for Alamofire. It provides various features such as image response serializers, UIImage extensions for inflation, scaling, rounding, and CoreImage, single and multi-pass image filters, auto-purging in-memory image cache, prioritized queue order image downloading, authentication with URLCredential, and more. It is compatible with different platforms including iOS, macOS, tvOS, watchOS, and vision OS.


  • Image Response Serializers: Allows for efficient handling of image responses from Alamofire.
  • UIImage Extensions: Provides extensions to UIImage for tasks such as inflation, scaling, rounding, and CoreImage.
  • Single and Multi-Pass Image Filters: Enables the application of various filters to images, including single and multi-pass filters.
  • Auto-Purging In-Memory Image Cache: Implements an in-memory image cache that automatically purges when memory limits are reached.
  • Prioritized Queue Order Image Downloading: Allows for prioritized downloading of images based on a queue order.
  • Authentication with URLCredential: Supports authentication with URLCredential for secure image downloading.
  • UIImageView Async Remote Downloads with Placeholders: Facilitates async remote image downloading and provides support for placeholder images.
  • UIImageView Filters and Transitions: Enables the application of filters and transitions to UIImageViews.
  • Comprehensive Test Coverage: Includes comprehensive test coverage to ensure functionality and stability.
  • Complete Documentation: Provides complete documentation for easy reference and usage.


To install AlamofireImage, you can use CocoaPods, Carthage, Swift Package Manager, or manually integrate it into your project.


  1. Install CocoaPods following the instructions on their website.
  2. Add the following line to your Podfile: pod 'AlamofireImage'
  3. Run pod install in your terminal.


  1. Install Carthage as a dependency manager.
  2. Add the following line to your Cartfile: github "Alamofire/AlamofireImage" ~> 4.0
  3. Run carthage update in your terminal.
  4. Follow the remaining steps mentioned in the Carthage documentation to add the frameworks to your project.

Swift Package Manager:

  1. Set up your Swift package if you haven't already.
  2. Add AlamofireImage as a dependency in your Package.swift file.

Manual Installation:

  1. Clone the AlamofireImage repository to your project directory using git submodule.
  2. Drag the AlamofireImage.xcodeproj file into your Xcode project.
  3. Make sure the deployment target of the AlamofireImage.xcodeproj matches your application target.
  4. Use the AlamofireImage framework in your project.


AlamofireImage is a powerful image component library for Alamofire. It offers a wide range of features for efficiently handling and manipulating images. The installation process is straightforward and can be done through popular dependency managers or manually. With its comprehensive test coverage and complete documentation, AlamofireImage is a reliable choice for image handling in any Alamofire-based project.