NetNewsWire/Shared/ArticleStyles/ArticleThemePlist.swift
Stuart Breckenridge 78e0595708 Various ThemeDownloader Updates
- `try` added where applicable to ArticleTheme inits
- `ArticleThemePlist` has fixed spelling of theme identifier and conforms to Equatable
- `ArticleTheme` now uses `ArticleThemePlist`
-  `ArticleThemeDownloader` is now a class
- `ArticleThemeDownloader` will now download themes to Application Support/NetNewsWire/Downloads on macOS and iOS.
- `ArticleThemeDownloader` will remove downloaded themes from the Download folder when the application is closed.
- macOS app delegate now observes for theme download fails
- Error display code moved from SceneDelegate to SceneCoordinator so that it can use existing presentError on rootVC.
2021-09-21 09:10:56 +08:00

26 lines
607 B
Swift

//
// ArticleThemePlist.swift
// NetNewsWire
//
// Created by Stuart Breckenridge on 19/09/2021.
// Copyright © 2021 Ranchero Software. All rights reserved.
//
import Foundation
public struct ArticleThemePlist: Codable, Equatable {
public var name: String
public var themeIdentifier: String
public var creatorHomePage: String
public var creatorName: String
public var version: Int
enum CodingKeys: String, CodingKey {
case name = "Name"
case themeIdentifier = "ThemeIdentifier"
case creatorHomePage = "CreatorHomePage"
case creatorName = "CreatorName"
case version = "Version"
}
}