### Install IRHexColor via CocoaPods Source: https://github.com/zhiyongzou/hexcolor/blob/master/README.md Use this command to add the IRHexColor library to your project using the CocoaPods package manager. ```bash pod 'IRHexColor' ``` -------------------------------- ### Convert RGB Hex Strings to UIColor Source: https://github.com/zhiyongzou/hexcolor/blob/master/README.md Use this snippet to convert standard RGB hex strings (with or without a '#') into UIColor objects. The library handles the conversion automatically. ```swift let red = UIColor.hexColor("FF0000") let green = UIColor.hexColor("#00FF00") let blue = UIColor.hexColor("0000FF") ``` -------------------------------- ### Configure Hex Color Cache Limit Source: https://github.com/zhiyongzou/hexcolor/blob/master/README.md Adjust the maximum number of hex colors the library will cache for performance. The default limit is 100. ```swift // default is 100 UIColor.cacheCountLimit = 200 ``` -------------------------------- ### Convert ARGB Hex Strings to UIColor Source: https://github.com/zhiyongzou/hexcolor/blob/master/README.md Convert ARGB hex strings (Alpha, Red, Green, Blue) to UIColor objects. Ensure the string format is correct for proper conversion. ```swift let aquaAlpha = UIColor.hexColor("99D4F2E7") let yellowAlpha = UIColor.hexColor("88FFFF00") ``` -------------------------------- ### Convert RGBA Hex Strings to UIColor with Type Specification Source: https://github.com/zhiyongzou/hexcolor/blob/master/README.md Convert RGBA hex strings (Red, Green, Blue, Alpha) to UIColor objects by explicitly specifying the type as .ARGB. This is useful when the alpha channel is at the end of the string. ```swift let aquaAlpha = UIColor.hexColor("D4F2E799", type: .ARGB) let yellowAlpha = UIColor.hexColor("FFFF0088", type: .ARGB) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.