mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
43 lines
908 B
Swift
43 lines
908 B
Swift
//
|
|
// SettingsHelpSheets.swift
|
|
// NetNewsWire-iOS
|
|
//
|
|
// Created by Stuart Breckenridge on 12/11/2022.
|
|
// Copyright © 2022 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
|
|
public enum HelpSheet: CustomStringConvertible, CaseIterable {
|
|
|
|
case help, website
|
|
|
|
public var description: String {
|
|
switch self {
|
|
case .help:
|
|
return NSLocalizedString("NETNEWSWIRE_HELP", tableName: "Settings", comment: "NetNewsWire Help")
|
|
case .website:
|
|
return NSLocalizedString("NETNEWSWIRE_WEBSITE", tableName: "Settings", comment: "NetNewsWire Website")
|
|
}
|
|
}
|
|
|
|
public var url: URL {
|
|
switch self {
|
|
case .help:
|
|
return URL(string: "https://netnewswire.com/help/ios/6.1/en/")!
|
|
case .website:
|
|
return URL(string: "https://netnewswire.com/")!
|
|
}
|
|
}
|
|
|
|
public var systemImage: String {
|
|
switch self {
|
|
case .help:
|
|
return "questionmark.app"
|
|
case .website:
|
|
return "globe"
|
|
}
|
|
}
|
|
}
|