metatext/Share Extension/ShareExtensionError+Extensions.swift

14 lines
345 B
Swift
Raw Normal View History

2020-12-06 03:10:27 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
2020-12-10 02:44:06 +00:00
import ViewModels
2020-12-06 03:10:27 +00:00
extension ShareExtensionError: LocalizedError {
2020-12-10 02:44:06 +00:00
public var errorDescription: String? {
2020-12-06 03:10:27 +00:00
switch self {
case .noAccountFound:
return NSLocalizedString("share-extension-error.no-account-found", comment: "")
}
}
}