mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
78e0595708
- `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.
26 lines
607 B
Swift
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"
|
|
}
|
|
}
|