mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 08:09:41 +01:00
23 lines
500 B
Swift
23 lines
500 B
Swift
//
|
|
// DefaultFeedsImporter.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Brent Simmons on 8/13/15.
|
|
// Copyright © 2015 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import Account
|
|
|
|
@MainActor struct DefaultFeedsImporter {
|
|
|
|
static func importDefaultFeeds(account: Account) {
|
|
|
|
let defaultFeedsURL = Bundle.main.url(forResource: "DefaultFeeds", withExtension: "opml")!
|
|
|
|
Task { @MainActor in
|
|
try? await AccountManager.shared.defaultAccount.importOPML(defaultFeedsURL)
|
|
}
|
|
}
|
|
}
|