iOS7Colors is a simple category on UIColor which provides you some of the standard colors used throughout iOS 7.
- Removed semicolons that block using
- Replaced the
- Added a method for
- Added Carthage support.
- Updated to the recommended project settings for Xcode 9.2
- Updated the sample app to use the forked Cocoapod.
The easiest way to integrate iOS7Colors is using CocoaPods. Since this is a fork, the Cocoapod is not published in the main Cocoapods repository. You can use this fork by adding this to your Podfile:
pod 'iOS7Colors', :git => 'https://github.com/HiddenJester/iOS7Colors.git'
Where you need the colors you can simply add:
The original fork is available by adding this to your Podfile:
pod 'iOS7Colors', '~> 2.0.0'
If you aren't using CocoaPods or Carthage then include
UIColor+iOS7Colors.m in your project.
If you aren't using the framework version from the fork you can import the category where you need the colors:
However you incorporate the category once that is done you can access the colors like this:
UILabel *label = [UILabel alloc] initWithFrame:CGRectZero]; label.textColor = [UIColor iOS7redColor];
iOS7Colors is licensed under the MIT-License