metatext-app-ios-iphone-ipad/Share Extension/ShareExtensionError+Extensi...

14 lines
345 B
Swift
Raw Permalink Normal View History

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