mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix several warnings.
This commit is contained in:
@@ -7,9 +7,13 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
import UniformTypeIdentifiers
|
||||
import UIKit
|
||||
|
||||
extension UTType {
|
||||
static var netNewsWireTheme: UTType { UTType(importedAs: "com.ranchero.netnewswire.theme") }
|
||||
}
|
||||
|
||||
class ArticleThemesTableViewController: UITableViewController {
|
||||
|
||||
override func viewDidLoad() {
|
||||
@@ -27,7 +31,7 @@ class ArticleThemesTableViewController: UITableViewController {
|
||||
}
|
||||
|
||||
@objc func importTheme(_ sender: Any?) {
|
||||
let docPicker = UIDocumentPickerViewController(documentTypes: ["com.ranchero.netnewswire.theme"], in: .import)
|
||||
let docPicker = UIDocumentPickerViewController(forOpeningContentTypes: [UTType.netNewsWireTheme])
|
||||
docPicker.delegate = self
|
||||
docPicker.modalPresentationStyle = .formSheet
|
||||
self.present(docPicker, animated: true)
|
||||
|
||||
Reference in New Issue
Block a user