Skip to content

Commit

Permalink
update => no message
Browse files Browse the repository at this point in the history
  • Loading branch information
tramp committed Apr 26, 2021
1 parent 1368720 commit b68d16c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Skins.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@
isa = PBXGroup;
children = (
C72E9F1C2632D7BF00D9DF94 /* CAEmitterCell+Skins.swift */,
C7A23B062636541E0056129E /* CAGradientLayer+Skins.swift */,
C72E9F162632D5F200D9DF94 /* CALayer+Skins.swift */,
C72E9F202632D82600D9DF94 /* CAReplicatorLayer+Skins.swift */,
C72E9F242632D88B00D9DF94 /* CAShapeLayer+Skins.swift */,
C72E9F282632D8D300D9DF94 /* CATextLayer+Skins.swift */,
C7A23B062636541E0056129E /* CAGradientLayer+Skins.swift */,
);
path = QuartzCore;
sourceTree = "<group>";
Expand Down Expand Up @@ -310,9 +310,9 @@
C7C7388B26328C8C002B134B /* Extensions */ = {
isa = PBXGroup;
children = (
C72E9EB42632AD5200D9DF94 /* NSLock+Skins.swift */,
C7C7388526328A9B002B134B /* String+Skins.swift */,
C7C7387B263260D2002B134B /* UIColor+Extensions.swift */,
C72E9EB42632AD5200D9DF94 /* NSLock+Skins.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down
4 changes: 3 additions & 1 deletion Skins/Skins.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ extension Skins {
/// - colorType: color type
/// - fileUrl: url of plist file
/// - Throws: Error
public func setup<T: SKColorable>(colorType: T.Type, fileUrl: URL) throws {
@discardableResult
public func setup<T: SKColorable>(colorType: T.Type, fileUrl: URL) throws -> Self {
guard let dict = NSDictionary.init(contentsOf: fileUrl) as? [String: Any] else {
throw SKError.init("can not paser plist file ....")
}
Expand All @@ -77,6 +78,7 @@ extension Skins {
let colorKey: Color = .init(rawValue: key)
colors[colorKey] = color
}
return self
}

/// color for key
Expand Down

0 comments on commit b68d16c

Please sign in to comment.