mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Article Theme / UniformTypeIdentifiers
This commit is contained in:
@@ -7,6 +7,13 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import UniformTypeIdentifiers
|
||||
|
||||
public extension UTType {
|
||||
static var nnwTheme: UTType {
|
||||
UTType("com.ranchero.netnewswire.theme")!
|
||||
}
|
||||
}
|
||||
|
||||
struct ArticleTheme: Equatable {
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import UniformTypeIdentifiers
|
||||
|
||||
import UIKit
|
||||
|
||||
@@ -27,7 +28,7 @@ class ArticleThemesTableViewController: UITableViewController {
|
||||
}
|
||||
|
||||
@objc func importTheme(_ sender: Any?) {
|
||||
let docPicker = UIDocumentPickerViewController(documentTypes: ["com.ranchero.netnewswire.theme"], in: .import)
|
||||
let docPicker = UIDocumentPickerViewController(forOpeningContentTypes: [.nnwTheme], asCopy: true)
|
||||
docPicker.delegate = self
|
||||
docPicker.modalPresentationStyle = .formSheet
|
||||
self.present(docPicker, animated: true)
|
||||
|
||||
Reference in New Issue
Block a user