forked from mac-cain13/R.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add catalog to nib/storyboard image and color parsing
- Loading branch information
1 parent
07fbe97
commit 05d4d3f
Showing
5 changed files
with
53 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// NameCatalog.swift | ||
// RswiftCore | ||
// | ||
// Created by Tom Lokhorst on 2020-05-08. | ||
// | ||
|
||
import Foundation | ||
|
||
struct NameCatalog: Hashable, Comparable { | ||
let name: String | ||
let catalog: String? | ||
|
||
var isSystemCatalog: Bool { | ||
return | ||
catalog == "System" // for colors | ||
|| catalog == "system" // for images | ||
} | ||
|
||
static func < (lhs: NameCatalog, rhs: NameCatalog) -> Bool { | ||
lhs.name < lhs.name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters