mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 02:22:25 +00:00
Merge branch 'main' of https://github.com/Ranchero-Software/NetNewsWire
This commit is contained in:
commit
4feec29dc5
17 files changed
+463
-410
No files matched your search
@@ -2,7 +2,7 @@
|
||||
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 SFPro-Bold;\f1\fnil\fcharset0 SFPro-Regular;}
|
||||
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
|
||||
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0\cname textColor;}
|
||||
\margl1440\margr1440\vieww14060\viewh15660\viewkind0
|
||||
\paperw12240\paperh15840\margl1440\margr1440\vieww14060\viewh15660\viewkind0
|
||||
\deftab720
|
||||
\pard\pardeftab720\sa60\partightenfactor0
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
\cf2 Contributing Developers \
|
||||
\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0
|
||||
{\field{\*\fldinst{HYPERLINK "https://stuartbreckenridge.net/"}}{\fldrslt \cf2 Stuart Breckenridge}}, {\field{\*\fldinst{HYPERLINK "https://github.com/vincode-io"}}{\fldrslt Maurice Parker}}\
|
||||
\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0
|
||||
\cf2 \
|
||||
\
|
||||
App Icon\
|
||||
{\field{\*\fldinst{HYPERLINK "https://twitter.com/BradEllis"}}{\fldrslt Brad Ellis}}\
|
||||
\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0
|
||||
{\field{\*\fldinst{HYPERLINK "https://hachyderm.io/@bradellis"}}{\fldrslt \cf2 Brad Ellis}}\
|
||||
\
|
||||
Feedly Syncing\
|
||||
{\field{\*\fldinst{HYPERLINK "https://twitter.com/kielgillard"}}{\fldrslt Kiel Gillard}}\
|
||||
\
|
||||
NewsBlur Syncing\
|
||||
{\field{\*\fldinst{HYPERLINK "https://twitter.com/quanganhdo"}}{\fldrslt Anh Do}}\
|
||||
{\field{\*\fldinst{HYPERLINK "https://mastodon.social/@anhdo"}}{\fldrslt Anh Do}}\
|
||||
\
|
||||
Under-the-Hood Magic and CSS Stylin's\
|
||||
{\field{\*\fldinst{HYPERLINK "https://github.com/wevah"}}{\fldrslt Nate Weaver}}\
|
||||
@@ -31,8 +31,14 @@ Under-the-Hood Magic and CSS Stylin's\
|
||||
Newsfoot (JS footnote displayer)\
|
||||
{\field{\*\fldinst{HYPERLINK "https://github.com/brehaut/"}}{\fldrslt Andrew Brehaut}}\
|
||||
\
|
||||
\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0
|
||||
\cf2 Help Book\
|
||||
{\field{\*\fldinst{HYPERLINK "https://github.com/nostodnayr"}}{\fldrslt Ryan Dotson}}\
|
||||
\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0
|
||||
\cf2 \
|
||||
And featuring contributions from\
|
||||
{\field{\*\fldinst{HYPERLINK "https://github.com/danielpunkass"}}{\fldrslt Daniel Jalkut}}, {\field{\*\fldinst{HYPERLINK "https://rhonabwy.com/"}}{\fldrslt Joe Heck}}, {\field{\*\fldinst{HYPERLINK "https://github.com/olofhellman"}}{\fldrslt Olof Hellman}}, {\field{\*\fldinst{HYPERLINK "https://blog.rizwan.dev/"}}{\fldrslt Rizwan Mohamed Ibrahim}}, {\field{\*\fldinst{HYPERLINK "https://twitter.com/philviso"}}{\fldrslt Phil Viso}}, and {\field{\*\fldinst{HYPERLINK "https://github.com/Ranchero-Software/NetNewsWire/graphs/contributors"}}{\fldrslt many more}}!\
|
||||
\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0
|
||||
{\field{\*\fldinst{HYPERLINK "https://github.com/danielpunkass"}}{\fldrslt \cf2 Daniel Jalkut}}, {\field{\*\fldinst{HYPERLINK "https://rhonabwy.com/"}}{\fldrslt Joe Heck}}, {\field{\*\fldinst{HYPERLINK "https://github.com/olofhellman"}}{\fldrslt Olof Hellman}}, {\field{\*\fldinst{HYPERLINK "https://blog.rizwan.dev/"}}{\fldrslt Rizwan Mohamed Ibrahim}}, {\field{\*\fldinst{HYPERLINK "https://github.com/philviso"}}{\fldrslt Phil Viso}}, and {\field{\*\fldinst{HYPERLINK "https://github.com/Ranchero-Software/NetNewsWire/graphs/contributors"}}{\fldrslt many more}}!\
|
||||
\pard\pardeftab720\li360\sa60\partightenfactor0
|
||||
\cf2 \
|
||||
\pard\pardeftab720\sa60\partightenfactor0
|
||||
|
||||
@@ -666,7 +666,6 @@
|
||||
176813EF2564BB2C00D98635 /* Sources */,
|
||||
176813F02564BB2C00D98635 /* Frameworks */,
|
||||
176813F12564BB2C00D98635 /* Resources */,
|
||||
1701E1BF25689B44009453D8 /* SwiftGen Localization */,
|
||||
17EF6A1725C4E59D002C9F81 /* Embed Frameworks */,
|
||||
84BB8F7F26224B5F00DB61F8 /* Delete Unnecessary Frameworks */,
|
||||
);
|
||||
@@ -1068,25 +1067,6 @@
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
1701E1BF25689B44009453D8 /* SwiftGen Localization */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "SwiftGen Localization";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "if ! command -v swiftgen &> /dev/null\nthen\n echo \"swiftgen could not be found\"\n exit\nfi\n\nswiftgen run strings -t structured-swift5 \"$PROJECT_DIR/Widget/Resources/en.lproj/Localizable.strings\" \"$PROJECT_DIR/Widget/Resources/Localizable.stringsdict\" --output \"$PROJECT_DIR/Widget/Resources/Localized.swift\";\n";
|
||||
};
|
||||
513F328A2593EFCE0003048F /* Delete Unnecessary Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>UnreadCount</key>
|
||||
<dict>
|
||||
<key>NSStringLocalizedFormatKey</key>
|
||||
<string>%#@unread_count@</string>
|
||||
<key>unread_count</key>
|
||||
<dict>
|
||||
<key>NSStringFormatSpecTypeKey</key>
|
||||
<string>NSStringPluralRuleType</string>
|
||||
<key>NSStringFormatValueTypeKey</key>
|
||||
<string>u</string>
|
||||
<key>zero</key>
|
||||
<string>No more unread articles</string>
|
||||
<key>one</key>
|
||||
<string>+ 1 more unread article</string>
|
||||
<key>other</key>
|
||||
<string>+ %u more unread articles</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>StarredCount</key>
|
||||
<dict>
|
||||
<key>NSStringLocalizedFormatKey</key>
|
||||
<string>%#@starred_count@</string>
|
||||
<key>starred_count</key>
|
||||
<dict>
|
||||
<key>NSStringFormatSpecTypeKey</key>
|
||||
<string>NSStringPluralRuleType</string>
|
||||
<key>NSStringFormatValueTypeKey</key>
|
||||
<string>u</string>
|
||||
<key>zero</key>
|
||||
<string>No more starred articles</string>
|
||||
<key>one</key>
|
||||
<string>+ 1 more starred article</string>
|
||||
<key>other</key>
|
||||
<string>+ %u more starred articles</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>TodayCount</key>
|
||||
<dict>
|
||||
<key>NSStringLocalizedFormatKey</key>
|
||||
<string>%#@today_count@</string>
|
||||
<key>today_count</key>
|
||||
<dict>
|
||||
<key>NSStringFormatSpecTypeKey</key>
|
||||
<string>NSStringPluralRuleType</string>
|
||||
<key>NSStringFormatValueTypeKey</key>
|
||||
<string>u</string>
|
||||
<key>zero</key>
|
||||
<string>No more recent articles</string>
|
||||
<key>one</key>
|
||||
<string>+ 1 more recent article</string>
|
||||
<key>other</key>
|
||||
<string>+ %u more recent articles</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>LocalizedCount</key>
|
||||
<dict>
|
||||
<key>NSStringLocalizedFormatKey</key>
|
||||
<string>%#@localized_count@</string>
|
||||
<key>localized_count</key>
|
||||
<dict>
|
||||
<key>NSStringFormatSpecTypeKey</key>
|
||||
<string>NSStringPluralRuleType</string>
|
||||
<key>NSStringFormatValueTypeKey</key>
|
||||
<string>u</string>
|
||||
<key>zero</key>
|
||||
<string>0</string>
|
||||
<key>other</key>
|
||||
<string>%u</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,105 @@
|
||||
{
|
||||
"sourceLanguage" : "en",
|
||||
"strings" : {
|
||||
"label.text.starred" : {
|
||||
"comment" : "Starred",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Starred"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.text.starred-no-articles" : {
|
||||
"comment" : "There are no starred articles.",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "There are no starred articles."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.text.starred-widget-description" : {
|
||||
"comment" : "A description of the Starred widget.",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "This widget displays your starred articles."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.text.today" : {
|
||||
"comment" : "Today",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Today"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.text.today-no-articles" : {
|
||||
"comment" : "There are no recent articles.",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "There are no recent articles."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.text.today-widget-description" : {
|
||||
"comment" : "A description of the Today widget.",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "This widget displays articles posted within the last 24 hours."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.text.unread" : {
|
||||
"comment" : "Unread",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Unread"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.text.unread-no-articles" : {
|
||||
"comment" : "There are no unread articles.",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "There are no unread articles."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"label.text.unread-widget-description" : {
|
||||
"comment" : "A description of the Unread widget.",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "This widget display unread articles."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"version" : "1.1"
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
// swiftlint:disable all
|
||||
// Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen
|
||||
|
||||
import Foundation
|
||||
|
||||
// swiftlint:disable superfluous_disable_command file_length implicit_return
|
||||
|
||||
// MARK: - Strings
|
||||
|
||||
// swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length
|
||||
// swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces
|
||||
internal enum L10n {
|
||||
/// Plural format key: "%#@localized_count@"
|
||||
internal static func localizedCount(_ p1: Int) -> String {
|
||||
return L10n.tr("Localizable", "LocalizedCount", p1)
|
||||
}
|
||||
/// Your smart feeds, summarized.
|
||||
internal static let smartFeedSummaryWidgetDescription = L10n.tr("Localizable", "SmartFeedSummary_Widget_Description")
|
||||
/// Your Smart Feed Summary
|
||||
internal static let smartFeedSummaryWidgetTitle = L10n.tr("Localizable", "SmartFeedSummary_Widget_Title")
|
||||
/// Starred
|
||||
internal static let starred = L10n.tr("Localizable", "Starred")
|
||||
/// A sneak peek at your starred articles.
|
||||
internal static let starredWidgetDescription = L10n.tr("Localizable", "Starred_Widget_Description")
|
||||
/// When you mark articles as Starred, they'll appear here.
|
||||
internal static let starredWidgetNoItems = L10n.tr("Localizable", "Starred_Widget_NoItems")
|
||||
/// Starred
|
||||
internal static let starredWidgetNoItemsTitle = L10n.tr("Localizable", "Starred_Widget_NoItemsTitle")
|
||||
/// Your Starred Articles
|
||||
internal static let starredWidgetTitle = L10n.tr("Localizable", "Starred_Widget_Title")
|
||||
/// Plural format key: "%#@starred_count@"
|
||||
internal static func starredCount(_ p1: Int) -> String {
|
||||
return L10n.tr("Localizable", "StarredCount", p1)
|
||||
}
|
||||
/// Today
|
||||
internal static let today = L10n.tr("Localizable", "Today")
|
||||
/// A sneak peek at recently published unread articles.
|
||||
internal static let todayWidgetDescription = L10n.tr("Localizable", "Today_Widget_Description")
|
||||
/// There are no recent unread articles left to read.
|
||||
internal static let todayWidgetNoItems = L10n.tr("Localizable", "Today_Widget_NoItems")
|
||||
/// Today
|
||||
internal static let todayWidgetNoItemsTitle = L10n.tr("Localizable", "Today_Widget_NoItemsTitle")
|
||||
/// Your Today Articles
|
||||
internal static let todayWidgetTitle = L10n.tr("Localizable", "Today_Widget_Title")
|
||||
/// Plural format key: "%#@today_count@"
|
||||
internal static func todayCount(_ p1: Int) -> String {
|
||||
return L10n.tr("Localizable", "TodayCount", p1)
|
||||
}
|
||||
/// Unread
|
||||
internal static let unread = L10n.tr("Localizable", "Unread")
|
||||
/// A sneak peek at your unread articles.
|
||||
internal static let unreadWidgetDescription = L10n.tr("Localizable", "Unread_Widget_Description")
|
||||
/// There are no unread articles left to read.
|
||||
internal static let unreadWidgetNoItems = L10n.tr("Localizable", "Unread_Widget_NoItems")
|
||||
/// Unread
|
||||
internal static let unreadWidgetNoItemsTitle = L10n.tr("Localizable", "Unread_Widget_NoItemsTitle")
|
||||
/// Your Unread Articles
|
||||
internal static let unreadWidgetTitle = L10n.tr("Localizable", "Unread_Widget_Title")
|
||||
/// Plural format key: "%#@unread_count@"
|
||||
internal static func unreadCount(_ p1: Int) -> String {
|
||||
return L10n.tr("Localizable", "UnreadCount", p1)
|
||||
}
|
||||
}
|
||||
// swiftlint:enable explicit_type_interface function_parameter_count identifier_name line_length
|
||||
// swiftlint:enable nesting type_body_length type_name vertical_whitespace_opening_braces
|
||||
|
||||
// MARK: - Implementation Details
|
||||
|
||||
extension L10n {
|
||||
private static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String {
|
||||
let format = BundleToken.bundle.localizedString(forKey: key, value: nil, table: table)
|
||||
return String(format: format, locale: Locale.current, arguments: args)
|
||||
}
|
||||
}
|
||||
|
||||
// swiftlint:disable convenience_type
|
||||
private final class BundleToken {
|
||||
static let bundle: Bundle = {
|
||||
#if SWIFT_PACKAGE
|
||||
return Bundle.module
|
||||
#else
|
||||
return Bundle(for: BundleToken.self)
|
||||
#endif
|
||||
}()
|
||||
}
|
||||
// swiftlint:enable convenience_type
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
Localizable.strings
|
||||
NetNewsWire
|
||||
|
||||
Created by Stuart Breckenridge on 21/11/2020.
|
||||
Copyright © 2020 Ranchero Software. All rights reserved.
|
||||
*/
|
||||
|
||||
/* Bundle */
|
||||
"Unread_Widget_Title" = "Unread Articles";
|
||||
"Unread_Widget_Description" = "See unread articles.";
|
||||
|
||||
"Today_Widget_Title" = "Today Articles";
|
||||
"Today_Widget_Description" = "See the latest articles.";
|
||||
|
||||
"Starred_Widget_Title" = "Starred Articles";
|
||||
"Starred_Widget_Description" = "See your starred articles.";
|
||||
|
||||
"SmartFeedSummary_Widget_Title" = "Your Smart Feed Summary";
|
||||
"SmartFeedSummary_Widget_Description" = "Your smart feeds, summarized.";
|
||||
|
||||
/* Unread Widget */
|
||||
"Unread_Widget_NoItemsTitle" = "Unread";
|
||||
"Unread_Widget_NoItems" = "There are no unread articles.";
|
||||
|
||||
/* Today Widget */
|
||||
"Today_Widget_NoItemsTitle" = "Today";
|
||||
"Today_Widget_NoItems" = "There are no recent articles.";
|
||||
|
||||
/* Starred Widget */
|
||||
"Starred_Widget_NoItemsTitle" = "Starred";
|
||||
"Starred_Widget_NoItems" = "There are no starred articles.";
|
||||
|
||||
/* Smart Feed Summary Widget */
|
||||
"Unread" = "Unread";
|
||||
"Today" = "Today ";
|
||||
"Starred" = "Starred";
|
||||
@@ -16,49 +16,52 @@ struct StarredWidgetView: View {
|
||||
var entry: Provider.Entry
|
||||
|
||||
var body: some View {
|
||||
if entry.widgetData.starredArticles.count == 0 {
|
||||
if entry.widgetData.currentStarredCount == 0 {
|
||||
inboxZero
|
||||
.widgetURL(WidgetDeepLink.starred.url)
|
||||
} else {
|
||||
GeometryReader { _ in
|
||||
starredImage
|
||||
.frame(width: WidgetLayout.titleImageSize, alignment: .leading)
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
}
|
||||
else {
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
starredImage
|
||||
.layoutPriority(1)
|
||||
Text("label.text.starred", comment: "Starred")
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.lineLimit(1)
|
||||
.minimumScaleFactor(0.8)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.layoutPriority(1)
|
||||
Spacer()
|
||||
.layoutPriority(0)
|
||||
if entry.widgetData.currentStarredCount - maxCount() > 0 {
|
||||
Text(verbatim: entry.widgetData.currentStarredCount.formatted())
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.foregroundColor(.secondary)
|
||||
.lineLimit(1)
|
||||
.minimumScaleFactor(0.8)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}
|
||||
}
|
||||
.widgetURL(WidgetDeepLink.starred.url)
|
||||
Divider()
|
||||
if entry.widgetData.starredArticles.count > 0 {
|
||||
ForEach(0..<maxCount(), id: \.self, content: { i in
|
||||
if i != 0 {
|
||||
Divider()
|
||||
ArticleItemView(article: entry.widgetData.starredArticles[i],
|
||||
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url)
|
||||
.padding(.top, WidgetLayout.articleItemViewPaddingTop)
|
||||
.padding(.bottom, WidgetLayout.articleItemViewPaddingBottom)
|
||||
} else {
|
||||
ArticleItemView(article: entry.widgetData.starredArticles[i],
|
||||
deepLink: WidgetDeepLink.starredArticle(id: entry.widgetData.starredArticles[i].id).url)
|
||||
.padding(.bottom, WidgetLayout.articleItemViewPaddingBottom)
|
||||
}
|
||||
})
|
||||
Spacer()
|
||||
}
|
||||
.padding(.leading, WidgetLayout.leftSideWidth)
|
||||
.padding([.bottom, .trailing])
|
||||
.overlay(
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
Spacer()
|
||||
if entry.widgetData.currentStarredCount - maxCount() > 0 {
|
||||
Text(L10n.starredCount(entry.widgetData.currentStarredCount - maxCount()))
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.widgetURL(WidgetDeepLink.starred.url)
|
||||
.padding(.vertical, 2)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,11 +95,12 @@ struct StarredWidgetView: View {
|
||||
.frame(width: 30)
|
||||
.foregroundColor(.yellow)
|
||||
|
||||
Text(L10n.starredWidgetNoItemsTitle)
|
||||
|
||||
Text("label.text.starred", comment: "Starred")
|
||||
.font(.headline)
|
||||
.foregroundColor(.primary)
|
||||
|
||||
Text(L10n.starredWidgetNoItems)
|
||||
Text("label.text.starred-no-articles", comment: "There are no starred articles.")
|
||||
.font(.caption)
|
||||
.foregroundColor(.gray)
|
||||
Spacer()
|
||||
|
||||
@@ -17,49 +17,52 @@ struct TodayWidgetView: View {
|
||||
var entry: Provider.Entry
|
||||
|
||||
var body: some View {
|
||||
if entry.widgetData.todayArticles.count == 0 {
|
||||
if entry.widgetData.currentTodayCount == 0 {
|
||||
inboxZero
|
||||
.widgetURL(WidgetDeepLink.today.url)
|
||||
} else {
|
||||
GeometryReader { _ in
|
||||
todayImage
|
||||
.frame(width: WidgetLayout.titleImageSize, alignment: .leading)
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
}
|
||||
else {
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
todayImage
|
||||
.layoutPriority(1)
|
||||
Text("label.text.today", comment: "Today")
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.lineLimit(1)
|
||||
.minimumScaleFactor(0.8)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.layoutPriority(1)
|
||||
Spacer()
|
||||
.layoutPriority(0)
|
||||
if entry.widgetData.currentTodayCount - maxCount() > 0 {
|
||||
Text(verbatim: entry.widgetData.currentTodayCount.formatted())
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.foregroundColor(.secondary)
|
||||
.lineLimit(1)
|
||||
.minimumScaleFactor(0.8)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}
|
||||
}
|
||||
.widgetURL(WidgetDeepLink.today.url)
|
||||
Divider()
|
||||
if entry.widgetData.todayArticles.count > 0 {
|
||||
ForEach(0..<maxCount(), id: \.self, content: { i in
|
||||
if i != 0 {
|
||||
Divider()
|
||||
ArticleItemView(article: entry.widgetData.todayArticles[i],
|
||||
deepLink: WidgetDeepLink.todayArticle(id: entry.widgetData.todayArticles[i].id).url)
|
||||
.padding(.top, WidgetLayout.articleItemViewPaddingTop)
|
||||
.padding(.bottom, WidgetLayout.articleItemViewPaddingBottom)
|
||||
} else {
|
||||
ArticleItemView(article: entry.widgetData.todayArticles[i],
|
||||
deepLink: WidgetDeepLink.todayArticle(id: entry.widgetData.todayArticles[i].id).url)
|
||||
.padding(.bottom, WidgetLayout.articleItemViewPaddingBottom)
|
||||
}
|
||||
})
|
||||
Spacer()
|
||||
}
|
||||
.padding(.leading, WidgetLayout.leftSideWidth)
|
||||
.padding([.bottom, .trailing])
|
||||
.overlay(
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
Spacer()
|
||||
if entry.widgetData.currentTodayCount - maxCount() > 0 {
|
||||
Text(L10n.todayCount(entry.widgetData.currentTodayCount - maxCount()))
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.widgetURL(WidgetDeepLink.today.url)
|
||||
.padding(.vertical, 2)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,11 +95,12 @@ struct TodayWidgetView: View {
|
||||
.frame(width: 30)
|
||||
.foregroundColor(.orange)
|
||||
|
||||
Text(L10n.todayWidgetNoItemsTitle)
|
||||
|
||||
Text("label.text.today", comment: "Today")
|
||||
.font(.headline)
|
||||
.foregroundColor(.primary)
|
||||
|
||||
Text(L10n.todayWidgetNoItems)
|
||||
Text("label.text.today-no-articles", comment: "There are no recent articles.")
|
||||
.font(.caption)
|
||||
.foregroundColor(.gray)
|
||||
Spacer()
|
||||
|
||||
@@ -19,48 +19,52 @@ struct UnreadWidgetView: View {
|
||||
if entry.widgetData.currentUnreadCount == 0 {
|
||||
inboxZero
|
||||
.widgetURL(WidgetDeepLink.unread.url)
|
||||
} else {
|
||||
GeometryReader { _ in
|
||||
unreadImage
|
||||
.frame(width: WidgetLayout.titleImageSize, alignment: .leading)
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
}
|
||||
else {
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
unreadImage
|
||||
.layoutPriority(1)
|
||||
Text("label.text.unread", comment: "Unread")
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.lineLimit(1)
|
||||
.minimumScaleFactor(0.8)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.layoutPriority(1)
|
||||
Spacer()
|
||||
.layoutPriority(0)
|
||||
if entry.widgetData.currentUnreadCount - maxCount() > 0 {
|
||||
Text(verbatim: entry.widgetData.currentUnreadCount.formatted())
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.foregroundColor(.secondary)
|
||||
.lineLimit(1)
|
||||
.minimumScaleFactor(0.8)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
}
|
||||
}
|
||||
.widgetURL(WidgetDeepLink.unread.url)
|
||||
Divider()
|
||||
if entry.widgetData.unreadArticles.count > 0 {
|
||||
ForEach(0..<maxCount(), id: \.self, content: { i in
|
||||
if i != 0 {
|
||||
Divider()
|
||||
ArticleItemView(article: entry.widgetData.unreadArticles[i],
|
||||
deepLink: WidgetDeepLink.unreadArticle(id: entry.widgetData.unreadArticles[i].id).url)
|
||||
.padding(.top, WidgetLayout.articleItemViewPaddingTop)
|
||||
.padding(.bottom, WidgetLayout.articleItemViewPaddingBottom)
|
||||
} else {
|
||||
ArticleItemView(article: entry.widgetData.unreadArticles[i],
|
||||
deepLink: WidgetDeepLink.unreadArticle(id: entry.widgetData.unreadArticles[i].id).url)
|
||||
.padding(.bottom, WidgetLayout.articleItemViewPaddingBottom)
|
||||
}
|
||||
})
|
||||
Spacer()
|
||||
}
|
||||
.padding(.leading, WidgetLayout.leftSideWidth)
|
||||
.padding([.bottom, .trailing])
|
||||
.overlay(
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack {
|
||||
Spacer()
|
||||
if entry.widgetData.currentUnreadCount - maxCount() > 0 {
|
||||
Text(L10n.unreadCount(entry.widgetData.currentUnreadCount - maxCount()))
|
||||
.font(.caption2)
|
||||
.bold()
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.horizontal)
|
||||
)
|
||||
Spacer()
|
||||
}
|
||||
.widgetURL(WidgetDeepLink.unread.url)
|
||||
.padding(.vertical, 2)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var unreadImage: some View {
|
||||
Image(systemName: "largecircle.fill.circle")
|
||||
.resizable()
|
||||
@@ -89,11 +93,11 @@ struct UnreadWidgetView: View {
|
||||
.foregroundColor(.accentColor)
|
||||
.frame(width: 30)
|
||||
|
||||
Text(L10n.unreadWidgetNoItemsTitle)
|
||||
Text("label.text.unread", comment: "Unread")
|
||||
.font(.headline)
|
||||
.foregroundColor(.primary)
|
||||
|
||||
Text(L10n.unreadWidgetNoItems)
|
||||
Text("label.text.unread-no-articles", comment: "There are no unread articles.")
|
||||
.font(.caption)
|
||||
.foregroundColor(.gray)
|
||||
Spacer()
|
||||
|
||||
@@ -10,10 +10,10 @@ import Foundation
|
||||
|
||||
struct WidgetLayout {
|
||||
|
||||
static let titleImageSize = CGFloat(20)
|
||||
static let titleImageSize = CGFloat(14)
|
||||
static let titleImagePaddingRight = CGFloat(6)
|
||||
static let leftSideWidth = titleImageSize + titleImagePaddingRight
|
||||
static let feedIconSize = CGFloat(24)
|
||||
static let feedIconSize = CGFloat(14)
|
||||
static let articleItemViewPaddingTop = CGFloat(8)
|
||||
static let articleItemViewPaddingBottom = CGFloat(4)
|
||||
}
|
||||
@@ -23,8 +23,8 @@ struct UnreadWidget: Widget {
|
||||
Color.clear
|
||||
}
|
||||
})
|
||||
.configurationDisplayName(L10n.unreadWidgetTitle)
|
||||
.description(L10n.unreadWidgetDescription)
|
||||
.configurationDisplayName(Text("label.text.unread", comment: "Unread"))
|
||||
.description(Text("label.text.unread-widget-description", comment: "A description of the Unread widget."))
|
||||
.supportedFamilies([.systemMedium, .systemLarge])
|
||||
}
|
||||
}
|
||||
@@ -41,8 +41,8 @@ struct TodayWidget: Widget {
|
||||
Color.clear
|
||||
}
|
||||
})
|
||||
.configurationDisplayName(L10n.todayWidgetTitle)
|
||||
.description(L10n.todayWidgetDescription)
|
||||
.configurationDisplayName(Text("label.text.today", comment: "Today"))
|
||||
.description(Text("label.text.today-widget-description", comment: "A description of the Today widget."))
|
||||
.supportedFamilies([.systemMedium, .systemLarge])
|
||||
}
|
||||
}
|
||||
@@ -59,8 +59,8 @@ struct StarredWidget: Widget {
|
||||
Color.clear
|
||||
}
|
||||
})
|
||||
.configurationDisplayName(L10n.starredWidgetTitle)
|
||||
.description(L10n.starredWidgetDescription)
|
||||
.configurationDisplayName(Text("label.text.starred", comment: "Starred"))
|
||||
.description(Text("label.text.starred-widget-description", comment: "A description of the Starred widget."))
|
||||
.supportedFamilies([.systemMedium, .systemLarge])
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// AboutContributor.swift
|
||||
// NetNewsWire-iOS
|
||||
//
|
||||
// Created by Stuart Breckenridge on 01/01/2026.
|
||||
// Copyright © 2026 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
public struct AboutContributor: Identifiable, Hashable {
|
||||
public let id: UUID = UUID()
|
||||
|
||||
let name: String
|
||||
let url: URL
|
||||
}
|
||||
|
||||
|
||||
public enum Contributors: CaseIterable {
|
||||
|
||||
case mauriceParker
|
||||
case stuartBreckenridge
|
||||
case bradEllis
|
||||
case keilGillard
|
||||
case anhDo
|
||||
case nateWeaver
|
||||
case andrewBrehaut
|
||||
case danielJalkut
|
||||
case joeHeck
|
||||
case olofHellman
|
||||
case rizwanMohamedIbrahim
|
||||
case philViso
|
||||
case ryanDotson
|
||||
case others
|
||||
|
||||
|
||||
public var contributor: AboutContributor {
|
||||
switch self {
|
||||
case .mauriceParker:
|
||||
return AboutContributor(name: "Maurice Parker", url: URL(string: "https://vincode.io")!)
|
||||
case .stuartBreckenridge:
|
||||
return AboutContributor(name: "Stuart Breckenridge", url: URL(string: "https://stuartbreckenridge.net")!)
|
||||
case .bradEllis:
|
||||
return AboutContributor(name: "Brad Ellis", url: URL(string: "https://hachyderm.io/@bradellis")!)
|
||||
case .keilGillard:
|
||||
return AboutContributor(name: "Keil Gillard", url: URL(string: "https://twitter.com/kielgillard")!)
|
||||
case .anhDo:
|
||||
return AboutContributor(name: "Anh Do", url: URL(string:"https://mastodon.social/@anhdo")!)
|
||||
case .nateWeaver:
|
||||
return AboutContributor(name: "Nate Weaver", url: URL(string: "https://github.com/wevah")!)
|
||||
case .andrewBrehaut:
|
||||
return AboutContributor(name: "Andrew Brehaut", url: URL(string: "https://github.com/brehaut/")!)
|
||||
case .danielJalkut:
|
||||
return AboutContributor(name: "Daniel Jalkut", url: URL(string: "https://github.com/danielpunkass")!)
|
||||
case .joeHeck:
|
||||
return AboutContributor(name: "Joe Heck", url: URL(string: "https://rhonabwy.com/")!)
|
||||
case .olofHellman:
|
||||
return AboutContributor(name: "Olof Hellman", url: URL(string: "https://github.com/olofhellman")!)
|
||||
case .rizwanMohamedIbrahim:
|
||||
return AboutContributor(name: "Rizwan Mohamed Ibrahim", url: URL(string: "https://blog.rizwan.dev/")!)
|
||||
case .philViso:
|
||||
return AboutContributor(name: "Phil Viso", url: URL(string: "https://github.com/philviso")!)
|
||||
case .ryanDotson:
|
||||
return AboutContributor(name: "Ryan Dotson", url: URL(string: "https://github.com/nostodnayr")!)
|
||||
case .others:
|
||||
return AboutContributor(name: "and many more", url: URL(string: "https://github.com/Ranchero-Software/NetNewsWire/graphs/contributors")!)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// AboutCreditView.swift
|
||||
// NetNewsWire-iOS
|
||||
//
|
||||
// Created by Stuart Breckenridge on 15/09/2025.
|
||||
// Copyright © 2025 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct AboutCreditView: View {
|
||||
|
||||
let contributorType: String
|
||||
let contributors: [Contributors]
|
||||
|
||||
var body: some View {
|
||||
HStack(alignment: .top) {
|
||||
Spacer()
|
||||
Text(verbatim: contributorType)
|
||||
.foregroundStyle(.secondary)
|
||||
.frame(maxWidth: .infinity, alignment: .trailing)
|
||||
.lineLimit(3)
|
||||
.multilineTextAlignment(.trailing)
|
||||
.minimumScaleFactor(0.8)
|
||||
VStack {
|
||||
ForEach(contributors, id: \.self) { item in
|
||||
Text(verbatim: item.contributor.name)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.lineLimit(2)
|
||||
.multilineTextAlignment(.leading)
|
||||
.minimumScaleFactor(0.8)
|
||||
.foregroundStyle(.link)
|
||||
.onTapGesture {
|
||||
UIApplication.shared.open(item.contributor.url)
|
||||
}
|
||||
}
|
||||
}
|
||||
Spacer()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
AboutCreditView(contributorType: "Contributing Developers", contributors: [Contributors.mauriceParker, Contributors.stuartBreckenridge])
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
//
|
||||
// AboutView.swift
|
||||
// NetNewsWire-iOS
|
||||
//
|
||||
// Created by Stuart Breckenridge on 15/09/2025.
|
||||
// Copyright © 2025 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct AboutView: View {
|
||||
var body: some View {
|
||||
ScrollView(.vertical) {
|
||||
VStack(alignment: .center, spacing: 12) {
|
||||
Image("nnwFeedIcon")
|
||||
.resizable()
|
||||
.frame(width: 100, height: 100)
|
||||
.clipShape(ConcentricRectangle(corners: .fixed(20)))
|
||||
|
||||
Text(verbatim: "NetNewsWire")
|
||||
.font(.largeTitle)
|
||||
|
||||
Text(verbatim: "By Brent Simmons and the Ranchero Software Team")
|
||||
.foregroundStyle(.secondary)
|
||||
Text("[netnewswire.com](https://netnewswire.com)")
|
||||
|
||||
|
||||
VStack(spacing: 6) {
|
||||
Text(verbatim: "Credits")
|
||||
.bold()
|
||||
.foregroundStyle(.secondary)
|
||||
.padding(.top, 16)
|
||||
AboutCreditView(contributorType: "Contributing Developers", contributors: [Contributors.mauriceParker, Contributors.stuartBreckenridge])
|
||||
AboutCreditView(contributorType: "App Icon", contributors: [.bradEllis])
|
||||
AboutCreditView(contributorType: "Feedly Syncing", contributors: [.keilGillard])
|
||||
AboutCreditView(contributorType: "NewsBlur Synching", contributors: [.anhDo])
|
||||
AboutCreditView(contributorType: "Under-the-hood magic & CSS", contributors: [.nateWeaver])
|
||||
AboutCreditView(contributorType: "Newsfoot (JS footnote displayer)", contributors: [.andrewBrehaut])
|
||||
AboutCreditView(contributorType: "Help Book", contributors: [.ryanDotson])
|
||||
AboutCreditView(contributorType: "...and Featuring Additional Contributions from", contributors: [.danielJalkut, .joeHeck, .olofHellman, .rizwanMohamedIbrahim, .philViso, .others])
|
||||
}
|
||||
|
||||
VStack(spacing: 6) {
|
||||
Text(verbatim: "Thanks")
|
||||
.bold()
|
||||
.foregroundStyle(.secondary)
|
||||
.padding(.top, 16)
|
||||
Text("Thanks to Sheila and my family; thanks to my friends in Seattle and around the globe; thanks to the ever-patient and ever-awesome NetNewsWire beta testers.\n\nThanks to [Gus Mueller](https://shapeof.com/) for [FMDB](https://github.com/ccgus/fmdb) by [Flying Meat Software](http://flyingmeat.com/). Thanks to [GitHub](https://github.com) and [Discourse](https://discourse.com) for making open source collaboration easy and fun. Thanks to [Ben Ubois](https://benubois.com/) at [Feedbin](https://feedbin.com) for all the extra help with syncing and article rendering — and [for hosting the server for the Reader view](https://feedbin.com/blog/2019/03/11/the-future-of-full-content/).")
|
||||
}
|
||||
|
||||
VStack(spacing: 6) {
|
||||
Text(verbatim: "Dedication")
|
||||
.bold()
|
||||
.foregroundStyle(.secondary)
|
||||
.padding(.top, 16)
|
||||
Text("NetNewsWire 7 is dedicated to everyone working to save democracy around the world.")
|
||||
}
|
||||
|
||||
|
||||
Text(verbatim: "Copyright © 2002-2025 Brent Simmons")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.scenePadding(.horizontal)
|
||||
}
|
||||
.multilineTextAlignment(.center)
|
||||
.background(Color(uiColor: .systemBackground))
|
||||
.navigationTitle(Text(verbatim: "About"))
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
AboutView()
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
//
|
||||
// AboutViewController.swift
|
||||
// NetNewsWire-iOS
|
||||
//
|
||||
// Created by Maurice Parker on 4/25/19.
|
||||
// Copyright © 2019 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
import RSCore
|
||||
|
||||
final class AboutViewController: UITableViewController {
|
||||
|
||||
@IBOutlet var aboutTextView: UITextView!
|
||||
@IBOutlet var creditsTextView: UITextView!
|
||||
@IBOutlet var acknowledgmentsTextView: UITextView!
|
||||
@IBOutlet var thanksTextView: UITextView!
|
||||
@IBOutlet var dedicationTextView: UITextView!
|
||||
|
||||
override func viewDidLoad() {
|
||||
|
||||
super.viewDidLoad()
|
||||
|
||||
configureCell(file: "About", textView: aboutTextView)
|
||||
configureCell(file: "Credits", textView: creditsTextView)
|
||||
configureCell(file: "Thanks", textView: thanksTextView)
|
||||
configureCell(file: "Dedication", textView: dedicationTextView)
|
||||
|
||||
let buildLabel = NonIntrinsicLabel(frame: CGRect(x: 32.0, y: 0.0, width: 0.0, height: 0.0))
|
||||
buildLabel.font = UIFont.systemFont(ofSize: 11.0)
|
||||
buildLabel.textColor = UIColor.gray
|
||||
buildLabel.text = NSLocalizedString("Copyright © 2002-2026 Brent Simmons", comment: "Copyright")
|
||||
buildLabel.numberOfLines = 0
|
||||
buildLabel.sizeToFit()
|
||||
buildLabel.translatesAutoresizingMaskIntoConstraints = false
|
||||
|
||||
let wrapperView = UIView(frame: CGRect(x: 0, y: 0, width: buildLabel.frame.width, height: buildLabel.frame.height + 10.0))
|
||||
wrapperView.translatesAutoresizingMaskIntoConstraints = false
|
||||
wrapperView.addSubview(buildLabel)
|
||||
tableView.tableFooterView = wrapperView
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
||||
return UITableView.automaticDimension
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private extension AboutViewController {
|
||||
|
||||
func configureCell(file: String, textView: UITextView) {
|
||||
let url = Bundle.main.url(forResource: file, withExtension: "rtf")!
|
||||
let string = try! NSAttributedString(url: url, options: [NSAttributedString.DocumentReadingOptionKey.documentType: NSAttributedString.DocumentType.rtf], documentAttributes: nil)
|
||||
textView.attributedText = string
|
||||
textView.textColor = UIColor.label
|
||||
textView.adjustsFontForContentSizeCategory = true
|
||||
textView.font = .preferredFont(forTextStyle: .body)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -384,10 +384,10 @@
|
||||
</tableViewCellContentView>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" id="WR6-xo-ty2" customClass="VibrantTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="1005" width="374" height="44"/>
|
||||
<rect key="frame" x="20" y="1005" width="374" height="92"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="WR6-xo-ty2" id="zX8-l2-bVH">
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="44"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="92"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="749" verticalCompressionResistancePriority="751" ambiguous="YES" text="Enable Full Screen Articles" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="79e-5s-vd0">
|
||||
@@ -397,7 +397,7 @@
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="2Md-2E-7Z4">
|
||||
<rect key="frame" x="307" y="6" width="51" height="25.5"/>
|
||||
<rect key="frame" x="295" y="6" width="63" height="28"/>
|
||||
<color key="onTintColor" name="primaryAccentColor"/>
|
||||
<connections>
|
||||
<action selector="switchFullscreenArticles:" destination="a0p-rk-skQ" eventType="valueChanged" id="5fa-Ad-e0j"/>
|
||||
@@ -429,20 +429,20 @@
|
||||
<tableViewSection headerTitle="Appearance" id="TkH-4v-yhk">
|
||||
<cells>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" id="EvG-yE-gDF" customClass="VibrantBasicTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="1105" width="374" height="44"/>
|
||||
<rect key="frame" x="20" y="1153" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="EvG-yE-gDF" id="wBN-zJ-6pN">
|
||||
<rect key="frame" x="0.0" y="0.0" width="355.5" height="44"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="343.5" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Color Palette" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Fp-li-dGP">
|
||||
<rect key="frame" x="20" y="11.5" width="98" height="20.5"/>
|
||||
<rect key="frame" x="20" y="15.5" width="98" height="20.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" ambiguous="YES" text="Automatic" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="16m-Ns-Y8V">
|
||||
<rect key="frame" x="258" y="11.5" width="77.5" height="20.5"/>
|
||||
<rect key="frame" x="258" y="15.5" width="77.5" height="20.5"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
@@ -466,14 +466,31 @@
|
||||
<tableViewSection headerTitle="Help" id="CS8-fJ-ghn">
|
||||
<cells>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" textLabel="uGk-2d-oFc" style="IBUITableViewCellStyleDefault" id="Tle-IV-D40" customClass="VibrantTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="1205" width="374" height="43.5"/>
|
||||
<rect key="frame" x="20" y="1260" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="Tle-IV-D40" id="IJD-ZB-8Wm">
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="43.5"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="NetNewsWire Help" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="uGk-2d-oFc">
|
||||
<rect key="frame" x="8" y="0.0" width="358" height="43.5"/>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="NetNewsWire Help" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="uGk-2d-oFc">
|
||||
<rect key="frame" x="20" y="0.0" width="334" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
</tableViewCellContentView>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" textLabel="MLJ-rt-2zt" style="IBUITableViewCellStyleDefault" id="rFJ-wv-qYV" customClass="VibrantTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="1311" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="rFJ-wv-qYV" id="gGO-fQ-60i">
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="NetNewsWire Forum" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="MLJ-rt-2zt">
|
||||
<rect key="frame" x="20" y="0.0" width="334" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
@@ -483,14 +500,14 @@
|
||||
</tableViewCellContentView>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" textLabel="NeD-y8-KrM" style="IBUITableViewCellStyleDefault" id="TIX-yK-rC6" customClass="VibrantTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="1248.5" width="374" height="43.5"/>
|
||||
<rect key="frame" x="20" y="1362" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="TIX-yK-rC6" id="qr8-EN-Ofg">
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="43.5"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="Release Notes" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="NeD-y8-KrM">
|
||||
<rect key="frame" x="8" y="0.0" width="358" height="43.5"/>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Release Notes" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="NeD-y8-KrM">
|
||||
<rect key="frame" x="20" y="0.0" width="334" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
@@ -500,14 +517,14 @@
|
||||
</tableViewCellContentView>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" textLabel="DsV-Qv-X4K" style="IBUITableViewCellStyleDefault" id="taJ-sg-wnU" customClass="VibrantTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="1292" width="374" height="43.5"/>
|
||||
<rect key="frame" x="20" y="1413" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="taJ-sg-wnU" id="axB-si-1KM">
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="43.5"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="Bug Tracker" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="DsV-Qv-X4K">
|
||||
<rect key="frame" x="8" y="0.0" width="358" height="43.5"/>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Bug Tracker" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="DsV-Qv-X4K">
|
||||
<rect key="frame" x="20" y="0.0" width="334" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
@@ -517,14 +534,14 @@
|
||||
</tableViewCellContentView>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" textLabel="76A-Ng-kfs" style="IBUITableViewCellStyleDefault" id="jK8-tv-hBD" customClass="VibrantTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
|
||||
<rect key="frame" x="20" y="1335.5" width="374" height="43.5"/>
|
||||
<rect key="frame" x="20" y="1464" width="374" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="jK8-tv-hBD" id="I7Q-GQ-u8Y">
|
||||
<rect key="frame" x="0.0" y="0.0" width="355.5" height="43.5"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="343.5" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="About NetNewsWire" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="76A-Ng-kfs">
|
||||
<rect key="frame" x="8" y="0.0" width="339.5" height="43.5"/>
|
||||
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="About NetNewsWire" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontForContentSizeCategory="YES" adjustsFontSizeToFit="NO" id="76A-Ng-kfs">
|
||||
<rect key="frame" x="20" y="0.0" width="315.5" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleBody"/>
|
||||
<nil key="textColor"/>
|
||||
|
||||
@@ -224,12 +224,15 @@ final class SettingsViewController: UITableViewController {
|
||||
openURL(HelpURL.helpHome.rawValue)
|
||||
tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
|
||||
case 1:
|
||||
openURL(HelpURL.releaseNotes.rawValue)
|
||||
openURL(HelpURL.discourse.rawValue)
|
||||
tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
|
||||
case 2:
|
||||
openURL(HelpURL.bugTracker.rawValue)
|
||||
openURL(HelpURL.releaseNotes.rawValue)
|
||||
tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
|
||||
case 3:
|
||||
openURL(HelpURL.bugTracker.rawValue)
|
||||
tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
|
||||
case 4:
|
||||
let timeline = UIStoryboard.settings.instantiateController(ofType: AboutViewController.self)
|
||||
self.navigationController?.pushViewController(timeline, animated: true)
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user