You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2018. It is now read-only.
static let description = "Swift is a high-performance system programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory safe by default."
static let tvmlUrl = "https://raw.githubusercontent.com/toshi0383/TVMLKitchen/swift2.2/SampleRecipe/Catalog.xml"
static var tvmlString: String {
return XMLString.Catalog.description
}
}
// swiftlint:enable line_length
enum XMLString: String {
case Catalog
}
extension XMLString: CustomStringConvertible {
var description: String {
switch self {
case .Catalog:
let path = Bundle.main.path(forResource: "Oneup", ofType: "xml")!
// swiftlint:disable force_try
return try! NSString(contentsOfFile: path, encoding: String.Encoding.utf8.rawValue) as String