ColorCompatibility Library

October 4, 2019

Update (11/19/2020): ColorCompatibility got a bump! Version 1.1.0 includes support for Objective-C. Thanks to Matthew Pierce for the contribution.

I wrote previously about a technique I use in Trestle and CIFilter.io to support iOS 12 and lower while still using system provided, dark-mode accessible colors.

Since I wrote that post, I've had a few people comment that the ColorCompatibility code had issues, and I've updated it a few times, so today I decided to pull it out into its own library and GitHub repo! 🎉

  • You can find the GitHub repo here
  • You can install the library via Cocoapods using:
    pod 'ColorCompatibility', '~> 1.0.0'
    

Hopefully this is a better home for the code. Please feel free to submit an issue or pull request on GitHub if you notice something that you think should be changed.

Thanks to everyone who called out that there were errors in the original blog post - I really appreciate everyone in the community working to make the project more robust. 💪

Tweet This
Get New Posts Via Email
Picture of me with a corgi

Noah Gilmore

I'm Noah, a software developer based in the San Francisco Bay Area. I focus mainly on full stack web and iOS development

  • 💻 I co-founded Replo, a no-code platform for e-commmerce
  • ✍️ You can read technical posts on my blog
  • 📱 I wrote an app which lets you create transparent app icons called Transparent App Icons
  • 🧩 I made a puzzle game for iPhone and iPad called Trestle
  • 🎨 I wrote a CoreImage filter utility app for iOS developers called CIFilter.io
  • 👋 Please feel free to reach out on Twitter / 𝕏