31 lines
869 B
Swift
31 lines
869 B
Swift
|
//
|
||
|
// RedditFeedProvider-Extensions.swift
|
||
|
// NetNewsWire
|
||
|
//
|
||
|
// Created by Maurice Parker on 5/2/20.
|
||
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
import Account
|
||
|
|
||
|
extension RedditFeedProvider: ExtensionPoint {
|
||
|
|
||
|
static var isSinglton = false
|
||
|
static var isDeveloperBuildRestricted = true
|
||
|
static var title = NSLocalizedString("Reddit", comment: "Reddit")
|
||
|
static var templateImage = AppAssets.extensionPointReddit
|
||
|
static var description: NSAttributedString = {
|
||
|
return RedditFeedProvider.makeAttrString("This extension enables you to subscribe to Reddit URL's as if they were RSS feeds. It only works with \(Account.defaultLocalAccountName) or iCloud accounts.")
|
||
|
}()
|
||
|
|
||
|
var extensionPointID: ExtensionPointIdentifer {
|
||
|
return ExtensionPointIdentifer.reddit(username)
|
||
|
}
|
||
|
|
||
|
var title: String {
|
||
|
return "/u/\(username)"
|
||
|
}
|
||
|
|
||
|
}
|