mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 08:55:34 +00:00
26 lines
509 B
Swift
26 lines
509 B
Swift
//
|
|
// KMPFile.swift
|
|
// KeymanEngine
|
|
//
|
|
// Created by Joshua Horton on 6/1/20.
|
|
// Copyright © 2020 SIL International. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct KMPFile: Codable {
|
|
var name: String
|
|
var description: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case name
|
|
case description
|
|
// case copyLocation // deliberately omitted
|
|
}
|
|
|
|
init(_ name: String, description: String? = nil) {
|
|
let desc = description ?? name
|
|
self.name = name
|
|
self.description = desc
|
|
}
|
|
}
|