Bump to v4.2.0
This commit is contained in:
parent
a859fc170d
commit
339d7443a9
|
@ -1,5 +1,12 @@
|
|||
# Change log
|
||||
|
||||
## [Version 4.1.1](https://github.com/yannickl/DynamicColor/releases/tag/4.2.0)
|
||||
*Released on 2019-09-15.*
|
||||
|
||||
- [FIX] Add parenthesis arround mathematical operators to avoid precedence issues (#51)
|
||||
- [ADD] `toRGBA` method
|
||||
- [ADD] `toAGBR` method
|
||||
|
||||
## [Version 4.1.0](https://github.com/yannickl/DynamicColor/releases/tag/4.1.0)
|
||||
*Released on 2019-05-27.*
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = 'DynamicColor'
|
||||
s.version = '4.1.0'
|
||||
s.version = '4.2.0'
|
||||
s.license = 'MIT'
|
||||
s.summary = 'Yet another extension to manipulate colors easily in Swift (UIColor and NSColor)'
|
||||
s.homepage = 'https://github.com/yannickl/DynamicColor.git'
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>4.1.0</string>
|
||||
<string>4.2.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>4.1.0</string>
|
||||
<string>4.2.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>4.1.0</string>
|
||||
<string>4.2.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>4.1.0</string>
|
||||
<string>4.2.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>4.1.0</string>
|
||||
<string>4.2.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>4.1.0</string>
|
||||
<string>4.2.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
|
|
@ -50,6 +50,8 @@ let color = DynamicColor(hex: 0x3498db)
|
|||
// color = NSColor(hex: 0x3498db)
|
||||
```
|
||||
|
||||
You can also retrieve the RGBA value and components very easily using multiple methods like `toHexString`, `toHex`, `toRGBA`, etc.
|
||||
|
||||
#### Darken & Lighten
|
||||
|
||||
These two create a new color by adjusting the lightness of the receiver. You have to use a value between 0 and 1.
|
||||
|
@ -236,7 +238,7 @@ source 'https://github.com/CocoaPods/Specs.git'
|
|||
platform :ios, '8.0'
|
||||
|
||||
use_frameworks!
|
||||
pod 'DynamicColor', '~> 4.1.0'
|
||||
pod 'DynamicColor', '~> 4.2.0'
|
||||
```
|
||||
|
||||
Install into your project:
|
||||
|
@ -267,7 +269,7 @@ $ brew install carthage
|
|||
To integrate `DynamicColor` into your Xcode project using Carthage, specify it in your `Cartfile` file:
|
||||
|
||||
```ogdl
|
||||
github "yannickl/DynamicColor" >= 4.1.0
|
||||
github "yannickl/DynamicColor" >= 4.2.0
|
||||
```
|
||||
|
||||
#### Swift Package Manager
|
||||
|
@ -279,7 +281,7 @@ let package = Package(
|
|||
name: "YOUR_PROJECT_NAME",
|
||||
targets: [],
|
||||
dependencies: [
|
||||
.Package(url: "https://github.com/yannickl/DynamicColor.git", versions: "4.1.0" ..< Version.max)
|
||||
.Package(url: "https://github.com/yannickl/DynamicColor.git", versions: "4.2.0" ..< Version.max)
|
||||
]
|
||||
)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue