Skip to content

Commit

Permalink
Merge pull request mchoe#136 from Fallen-Zen/FixedUIColorInitOverride
Browse files Browse the repository at this point in the history
Renamed override for default init for UIColor
  • Loading branch information
mchoe authored Jul 26, 2019
2 parents e6019f2 + 9d443ae commit dd8af7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions SwiftSVG.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = "com.straussmade.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -860,6 +861,7 @@
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = "com.straussmade.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -920,7 +922,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = SwiftSVGFramework/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx watchos watchsimulator appletvos appletvsimulator";
Expand Down Expand Up @@ -975,7 +977,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = SwiftSVGFramework/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = NO;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx watchos watchsimulator appletvos appletvsimulator";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand Down
6 changes: 3 additions & 3 deletions SwiftSVG/SVG/Helpers/UIColor+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public extension UIColor {
return
}

self.init(named: svgString)
self.init(namedCSS: svgString)
}

/**
Expand Down Expand Up @@ -164,8 +164,8 @@ public extension UIColor {
Convenience initializer that creates a new UIColor from a CSS3 named color
- SeeAlso: See here for all the colors: [https://www.w3.org/TR/css3-color/#svg-color](https://www.w3.org/TR/css3-color/#svg-color)
*/
convenience init?(named: String) {
guard let namedColor = CGColor.named[named] else {
convenience init?(namedCSS: String) {
guard let namedColor = CGColor.named[namedCSS] else {
return nil
}
self.init(cgColor: namedColor)
Expand Down

0 comments on commit dd8af7e

Please sign in to comment.