Merge pull request #4918 from stuartbreckenridge/main

Fix for About padding + some minor tweaks
This commit is contained in:
Brent Simmons authored and GitHub committed 2026-01-06 10:28:40 -08:00
commit aef87c80dd
3 files changed
+13 -10

No files matched your search

@@ -31,7 +31,7 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell {
unreadCountLabel.isHidden = true
} else {
unreadCountLabel.isHidden = false
updateUnreadCount()
updateUnreadCountVisibility()
}
unreadCountLabel.text = newValue.formatted()
}
@@ -51,7 +51,7 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell {
var disclosureExpanded = true {
didSet {
updateExpandedState(animate: true)
updateUnreadCount()
updateUnreadCountVisibility()
}
}
@@ -75,13 +75,13 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell {
}
}
func updateUnreadCount() {
if !disclosureExpanded && unreadCount > 0 && unreadCountLabel.alpha != 1 {
UIView.animate(withDuration: 0.3) {
func updateUnreadCountVisibility() {
if !disclosureExpanded && unreadCount > 0 {
UIView.animate {
self.unreadCountLabel.alpha = 1
}
} else {
UIView.animate(withDuration: 0.3) {
UIView.animate {
self.unreadCountLabel.alpha = 0
}
}
+5 -3
View File
@@ -137,7 +137,9 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
AccountManager.shared.resumeAll()
}
self.coordinator.selectAllUnreadFeed {
self.coordinator.selectArticleInCurrentFeed(id!)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) {
self.coordinator.selectArticleInCurrentFeed(id!)
}
}
} else {
self.coordinator.selectAllUnreadFeed()
@@ -152,7 +154,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
if AccountManager.shared.isSuspended {
AccountManager.shared.resumeAll()
}
self.coordinator.selectTodayFeed {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) {
self.coordinator.selectArticleInCurrentFeed(id!)
}
} else {
@@ -168,7 +170,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
if AccountManager.shared.isSuspended {
AccountManager.shared.resumeAll()
}
self.coordinator.selectStarredFeed {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) {
self.coordinator.selectArticleInCurrentFeed(id!)
}
} else {
+2 -1
View File
@@ -29,7 +29,7 @@ struct AboutView: View {
.bold()
.foregroundStyle(.secondary)
.padding(.top, 16)
AboutCreditView(contributorType: "Contributing Developers", contributors: [.stuartBreckenridge, .mauriceParker])
AboutCreditView(contributorType: "Contributing Developers", contributors: [.mauriceParker, .stuartBreckenridge])
AboutCreditView(contributorType: "App Icon", contributors: [.bradEllis])
AboutCreditView(contributorType: "Feedly Syncing", contributors: [.keilGillard])
AboutCreditView(contributorType: "NewsBlur Syncing", contributors: [.anhDo])
@@ -58,6 +58,7 @@ struct AboutView: View {
Text(verbatim: "Copyright © 2002-2026 Brent Simmons")
.font(.caption)
.foregroundStyle(.secondary)
.padding(.bottom)
}
.scenePadding(.horizontal)
}