Moved the String format constants from the Pathable protocol in the library target into its own String+Constants extension.

This commit is contained in:
Javier Cicchelli 2025-03-04 23:33:29 +01:00
parent 8cbee56e98
commit 65415fad52
2 changed files with 8 additions and 9 deletions

View File

@ -0,0 +1,8 @@
extension String {
enum Format {
enum Path {
static let docs = "/docs/%@"
static let root = "/%@"
}
}
}

View File

@ -7,12 +7,3 @@ protocol Pathable {
var path: String { get }
}
// MARK: - String+Formats
extension String {
enum Format {
static let pathDocs = "/docs/%@"
static let pathRoot = "/%@"
}
}