Moved the String format constants from the Pathable protocol in the library target into its own String+Constants extension.
This commit is contained in:
parent
8cbee56e98
commit
65415fad52
@ -0,0 +1,8 @@
|
|||||||
|
extension String {
|
||||||
|
enum Format {
|
||||||
|
enum Path {
|
||||||
|
static let docs = "/docs/%@"
|
||||||
|
static let root = "/%@"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -7,12 +7,3 @@ protocol Pathable {
|
|||||||
var path: String { get }
|
var path: String { get }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - String+Formats
|
|
||||||
|
|
||||||
extension String {
|
|
||||||
enum Format {
|
|
||||||
static let pathDocs = "/docs/%@"
|
|
||||||
static let pathRoot = "/%@"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user