Skip to content

Using Color Set to manage colors in Asset Catalog


Starting with Xcode9 (iOS 11), you can now manage your colors with Assets.
I made a UIColor Extension and registered a color and made a function.
It's easier to manage the colors, and I think it's easier to work with the designers. I thought to myself.
It's a very good feature, but it only works on iOS 11 and above, so you need to be careful.
If you don't set Deployment Target to 11.0 or higher, you will get a warning.

Open Asset and right click -> Select “New Color Set”.


Here we register a dark green with the name “ORIGINAL

alt alt

  1. I sent a code-level question to an Apple engineer.
  2. Grading the UIView background
  3. Implementing a custom button class
  4. Edit TableView to delete a Cell
  5. Edit TableView and delete a Cell (side-slide).
  6. Separate numbers into commas for each three digits (in Japanese yen)
  7. Get the current date and day of the week and the current time