NetNewsWire/Shared/Importers/DefaultFeedsImporter.swift

22 lines
479 B
Swift
Raw Normal View History

2017-05-27 19:43:27 +02:00
//
// DefaultFeedsImporter.swift
2018-08-29 07:18:24 +02:00
// NetNewsWire
2017-05-27 19:43:27 +02:00
//
// Created by Brent Simmons on 8/13/15.
// Copyright © 2015 Ranchero Software, LLC. All rights reserved.
//
import Foundation
2017-09-17 21:34:10 +02:00
import Account
import RSCore
2017-05-27 19:43:27 +02:00
2017-09-25 07:35:57 +02:00
struct DefaultFeedsImporter {
2017-05-27 19:43:27 +02:00
static func importDefaultFeeds(account: Account) {
let defaultFeedsURL = Bundle.main.url(forResource: "DefaultFeeds", withExtension: "opml")!
AccountManager.shared.defaultAccount.importOPML(defaultFeedsURL) { result in }
2017-05-27 19:43:27 +02:00
}
2017-05-27 19:43:27 +02:00
}