Skip to content

Commit 83e12b7

Browse files
author
coderchan
committed
Update
1 parent 196b952 commit 83e12b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SwiftlyUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'SwiftlyUI'
3-
s.version = '1.2.9'
3+
s.version = '1.2.10'
44
s.summary = 'Swift-style declarative UIKit Plus'
55
s.homepage = 'https://github.com/CoderLineChan/SwiftlyUI'
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

SwiftlyUI/Source/Core/UIColor+SwiftlyUI.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public extension UIColor {
7575
}
7676

7777
/// SwiftlyUI - Create Color with hex string.
78-
static func color(withHexStr hex: String, alpha: CGFloat = 1.0) -> UIColor {
79-
return UIColor(hexStr: hex, alpha: alpha) ?? UIColor.clear
78+
static func color(with hexString: String, alpha: CGFloat = 1.0) -> UIColor {
79+
return UIColor(hexStr: hexString, alpha: alpha) ?? UIColor.clear
8080
}
8181

8282
/// SwiftlyUI - Create Color with hex Int.
@@ -86,7 +86,7 @@ public extension UIColor {
8686

8787
/// SwiftlyUI - Create Color with hex string.
8888
static func hexColor(_ hex: String, alpha: CGFloat = 1.0) -> UIColor {
89-
return UIColor.color(withHexStr: hex, alpha: alpha)
89+
return UIColor.color(with: hex, alpha: alpha)
9090
}
9191

9292
/// SwiftlyUI - Create Color with hex Int.

0 commit comments

Comments
 (0)