mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 01:40:22 +00:00
Move some things to RSCore.
This commit is contained in:
1 parent
1ae75ce24b
commit
e7ea5eb5e6
16 files changed
+38
-40
No files matched your search
@@ -6,7 +6,7 @@
|
||||
// Copyright © 2019 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
#import <WebKit/WebKit.h>
|
||||
@import WebKit;
|
||||
|
||||
@interface WKPreferences (Private)
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// Animations.swift
|
||||
// NetNewsWire-iOS
|
||||
// RSCore
|
||||
//
|
||||
// Created by Maurice Parker on 1/27/20.
|
||||
// Copyright © 2020 Ranchero Software. All rights reserved.
|
||||
+1
-3
@@ -6,9 +6,7 @@
|
||||
// Copyright © 2019 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
extension Array where Element == CGRect {
|
||||
public extension Array where Element == CGRect {
|
||||
|
||||
func maxY() -> CGFloat {
|
||||
|
||||
+4
-6
@@ -8,18 +8,16 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
extension Bundle {
|
||||
|
||||
public extension Bundle {
|
||||
var appName: String {
|
||||
return infoDictionary?["CFBundleName"] as! String
|
||||
infoDictionary?["CFBundleName"] as! String
|
||||
}
|
||||
|
||||
var versionNumber: String {
|
||||
return infoDictionary?["CFBundleShortVersionString"] as! String
|
||||
infoDictionary?["CFBundleShortVersionString"] as! String
|
||||
}
|
||||
|
||||
var buildNumber: String {
|
||||
return infoDictionary?["CFBundleVersion"] as! String
|
||||
infoDictionary?["CFBundleVersion"] as! String
|
||||
}
|
||||
|
||||
}
|
||||
+2
-4
@@ -8,17 +8,15 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
final class CroppingPreviewParameters: UIPreviewParameters {
|
||||
|
||||
public final class CroppingPreviewParameters: UIPreviewParameters {
|
||||
override init() {
|
||||
super.init()
|
||||
}
|
||||
|
||||
init(view: UIView) {
|
||||
public init(view: UIView) {
|
||||
super.init()
|
||||
let newBounds = CGRect(x: 1, y: 1, width: view.bounds.width - 2, height: view.bounds.height - 2)
|
||||
let visiblePath = UIBezierPath(roundedRect: newBounds, cornerRadius: 10)
|
||||
self.visiblePath = visiblePath
|
||||
}
|
||||
|
||||
}
|
||||
+4
-5
@@ -8,11 +8,10 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
final class ImageHeaderView: UITableViewHeaderFooterView {
|
||||
public final class ImageHeaderView: UITableViewHeaderFooterView {
|
||||
public static let rowHeight = CGFloat(integerLiteral: 88)
|
||||
|
||||
static let rowHeight = CGFloat(integerLiteral: 88)
|
||||
|
||||
var imageView = UIImageView()
|
||||
public let imageView = UIImageView()
|
||||
|
||||
override init(reuseIdentifier: String?) {
|
||||
super.init(reuseIdentifier: reuseIdentifier)
|
||||
@@ -30,7 +29,7 @@ final class ImageHeaderView: UITableViewHeaderFooterView {
|
||||
addSubview(imageView)
|
||||
}
|
||||
|
||||
override func layoutSubviews() {
|
||||
public override func layoutSubviews() {
|
||||
let x = (bounds.width - 48.0) / 2
|
||||
let y = (bounds.height - 48.0) / 2
|
||||
imageView.frame = CGRect(x: x, y: y, width: 48.0, height: 48.0)
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
import UIKit
|
||||
import SafariServices
|
||||
import RSCore
|
||||
import Account
|
||||
|
||||
final class CloudKitAccountViewController: UITableViewController {
|
||||
|
||||
@@ -7,10 +7,11 @@
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import SafariServices
|
||||
import RSCore
|
||||
import RSWeb
|
||||
import Account
|
||||
import Secrets
|
||||
import RSWeb
|
||||
import SafariServices
|
||||
|
||||
final class FeedbinAccountViewController: UITableViewController {
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import RSCore
|
||||
import Account
|
||||
|
||||
final class LocalAccountViewController: UITableViewController {
|
||||
|
||||
@@ -7,10 +7,11 @@
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import SafariServices
|
||||
import RSCore
|
||||
import RSWeb
|
||||
import Account
|
||||
import Secrets
|
||||
import RSWeb
|
||||
import SafariServices
|
||||
|
||||
final class NewsBlurAccountViewController: UITableViewController {
|
||||
|
||||
|
||||
@@ -7,10 +7,11 @@
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import SafariServices
|
||||
import RSCore
|
||||
import RSWeb
|
||||
import Account
|
||||
import Secrets
|
||||
import RSWeb
|
||||
import SafariServices
|
||||
|
||||
final class ReaderAPIAccountViewController: UITableViewController {
|
||||
|
||||
|
||||
@@ -8,16 +8,16 @@
|
||||
|
||||
import UIKit
|
||||
import SafariServices
|
||||
import RSCore
|
||||
import Account
|
||||
|
||||
final class AccountInspectorViewController: UITableViewController {
|
||||
|
||||
static let preferredContentSizeForFormSheetDisplay = CGSize(width: 460.0, height: 400.0)
|
||||
|
||||
@IBOutlet weak var nameTextField: UITextField!
|
||||
@IBOutlet weak var activeSwitch: UISwitch!
|
||||
@IBOutlet weak var deleteAccountButton: VibrantButton!
|
||||
@IBOutlet weak var limitationsAndSolutionsButton: UIButton!
|
||||
@IBOutlet var nameTextField: UITextField!
|
||||
@IBOutlet var activeSwitch: UISwitch!
|
||||
@IBOutlet var deleteAccountButton: VibrantButton!
|
||||
@IBOutlet var limitationsAndSolutionsButton: UIButton!
|
||||
|
||||
var isModal = false
|
||||
weak var account: Account?
|
||||
@@ -195,7 +195,6 @@ extension AccountInspectorViewController {
|
||||
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
|
||||
tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: UITextFieldDelegate
|
||||
@@ -206,5 +205,4 @@ extension AccountInspectorViewController: UITextFieldDelegate {
|
||||
textField.resignFirstResponder()
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,9 +7,10 @@
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import Account
|
||||
import SafariServices
|
||||
import UserNotifications
|
||||
import RSCore
|
||||
import Account
|
||||
|
||||
final class FeedInspectorViewController: UITableViewController {
|
||||
|
||||
|
||||
@@ -7,16 +7,15 @@
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import WebKit
|
||||
import SafariServices
|
||||
import os
|
||||
import Account
|
||||
import Articles
|
||||
import SafariServices
|
||||
import UniformTypeIdentifiers
|
||||
import WebKit
|
||||
import RSCore
|
||||
import RSTree
|
||||
import RSWeb
|
||||
import SafariServices
|
||||
import UniformTypeIdentifiers
|
||||
import Account
|
||||
import Articles
|
||||
|
||||
private let reuseIdentifier = "FeedCell"
|
||||
private let folderIdentifier = "Folder"
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
import Foundation
|
||||
import UIKit
|
||||
import RSCore
|
||||
|
||||
extension UICollectionView {
|
||||
/**
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import RSCore
|
||||
|
||||
extension UITableView {
|
||||
|
||||
|
||||
Reference in new issue
Block a user