Commit Graph
855 Commits
Author SHA1 Message Date
Brent Simmons 5b0957be42 Fix a case of runaway JavaScript that made it so a user had to force-quit. 2026-04-01 13:56:55 -07:00
Brent Simmons 2cfd4212f5 Fix crash on iOS 17 — this symbol apparently doesn’t exist there. 2026-03-31 10:43:41 -07:00
Brent Simmons 92167c50aa Add date to didPurgeImageCachesForResizingKey so it’s more obvious what it is when I see it later. 2026-03-30 17:36:30 -07:00
Brent Simmons 93832592f3 Simplify image scaling. Scale to max size on download, then store in memory and on disk at scaled size rather than original size. Saves memory. 2026-03-30 17:34:35 -07:00
Brent Simmons b19d5b4544 Scale down images when necessary before caching on disk and in memory. 2026-03-30 16:58:03 -07:00
Brent Simmons 4a2c62cc6c Make app run on iOS 17 and up. 2026-03-29 21:31:02 -07:00
Brent Simmons 8faf1490c6 Create and use Platform.deviceHasiCloudAccount. Check it before syncing things in the key-value storage. 2026-03-29 20:23:59 -07:00
Jason Fry 302c0b84ed Allow WKWebView to go fullscreen.
To support things like YouTube video embeds going fullscreen.
2026-03-24 22:07:22 +00:00
Brent Simmons 28bb8f7a25 Use import os rather than import os.log. 2026-03-23 11:23:15 -07:00
Brent Simmons 7f15e3b322 Remove the every-10-minutes refresh setting. Migrate that setting to 30 minutes. Make two hours (instead of one hour) the default. 2026-03-16 20:29:43 -07:00
Brent Simmons 01c3671e4d Handle app-background notification. 2026-03-14 22:00:25 -07:00
Brent Simmons 964ed007bd Reference FaviconGenerator.shared. 2026-03-07 17:15:42 -08:00
Brent Simmons 0a99a441e0 Handle low memory notification. 2026-03-07 17:15:21 -08:00
Brent Simmons d43ca5a228 Handle low memory notification. 2026-03-07 17:14:21 -08:00
Brent Simmons a760d30cd3 Handle low memory notification. 2026-03-07 17:13:37 -08:00
Brent Simmons b080735211 Handle low memory notification. 2026-03-07 17:12:12 -08:00
Brent Simmons 41d27b6df4 Handle low memory notification. 2026-03-07 17:11:07 -08:00
Brent Simmons 092283522f Refer to ArticleStringFormatter.shared instead of to previous static version. 2026-03-07 17:05:41 -08:00
Brent Simmons d3537fd3e2 Handle low memory notification. 2026-03-07 17:03:18 -08:00
Brent Simmons 737300bb0c Handle low memory notification. 2026-03-07 16:56:09 -08:00
Brent Simmons 8a72850cc4 Make ArticleStringFormatter a class with shared instance and have it observe the .lowMemory notification. 2026-03-07 16:35:12 -08:00
Brent Simmons b71312134c Rename isNotifyAboutNewArticles to newArticleNotificationsEnabled. Rename isReaderViewAlwaysOn to readerViewAlwaysEnabled. 2026-03-07 13:58:56 -08:00
Brent Simmons e06127222e Draw a traditional sidebar unread count pill on macOS 15. Fixes #5170. 2026-03-03 21:16:48 -08:00
Justin Reeves af9b5bba02 Fix style of italic and emphasized text in articleTitle
`body a *` is overriding the color of `<i>` and `<em>` in articleTitle.

```
body a, body a:visited, body a :not(i, em) * {
		color: var(--secondary-accent-color);
	}
```

Also works.

(“Hyperlegible” is the only preinstalled theme that doesn’t do this.)
2026-02-12 20:11:20 -06:00
ClaudeandClaude Opus 4.6 4a1e471251 fix: Add !important to height:auto in default stylesheet to prevent image stretching
Inline height styles on <img> elements (common in RSS feeds) override the
stylesheet's height:auto, causing images to appear vertically stretched
when max-width constrains the width. All theme stylesheets already use
!important for this rule; this aligns the default stylesheet.

Fixes #5094

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 13:56:48 -05:00
Brent Simmons eb4de0df6d Avoid sending postFeedIconDidBecomeAvailableNotification when there's already a cached image (and thus a previous postFeedIconDidBecomeAvailableNotification). 2026-01-28 15:29:48 -08:00
Brent Simmons 49b939e464 Respect inline height styles on images. Fix small inline images rendering huge. Fix <https://discourse.netnewswire.com/t/markup-for-small-in-paragraph-images/71>. 2026-01-22 14:53:05 -08:00
Brent Simmons 7dc551e59f Fix super-large titles in Sepia. 2026-01-21 21:05:01 -08:00
Brent Simmons adb3885244 Fix super-large titles for Promenade theme. 2026-01-21 21:01:37 -08:00
Brent Simmons 805d563ccb Fix extra large titles in NewsFax theme on iOS. 2026-01-21 20:55:55 -08:00
Brent Simmons 5d2109d79e Fix the enormous title size for the Hyperlegible theme. 2026-01-21 20:49:33 -08:00
Brent Simmons 2b529c308f Delete the isElementFullscreenEnabled = true line for the web view — which, ironically, allows videos to play fullscreen. Without crashing. Super weird. 2026-01-20 21:24:37 -08:00
Brent Simmons c9ce198eef Fixed some SwiftLint issues. 2026-01-14 21:05:05 -08:00
Stuart Breckenridge 140f5d7a2b 🚑️ Fixes widget crash and alignment issues 2026-01-13 22:22:27 +08:00
Stuart Breckenridge fd860b8cd5 🚑️ Fix #4938 - Theme persistence
When setting a new theme, these three functions need to run in sequence.

AppDefaults.shared.currentThemeName = newValue
updateThemeNames()
updateCurrentTheme()

Within updateThemeNames() there is a `Task { @MainActor in }` that allows  `updateCurrentTheme()` to complete before `updateThemeNames()`. In this scenario, when `updateCurrentTheme() is run the app hasnt got an itinerary of installed themes, so it sets the current them back to Default.

Removing the `Task` fixes the persistence issue.
2026-01-10 10:42:54 +08:00
Brent Simmons e0be3718e0 Fix bug where hide-read-articles didn't work for Today feed or for folders. Fix #4919. 2026-01-08 21:47:39 -08:00
Brent Simmons f1dbe8045a Adjust the article title font size. Hide the .externalLink block when it’s empty. 2026-01-08 20:23:40 -08:00
Brent Simmons 7df7a40018 Fix lint issues. 2026-01-08 09:07:53 -08:00
Brent Simmons 306f4ea7a7 Merge pull request #4922 from stuartbreckenridge/improve-widget-performance
Improve widget performance
2026-01-08 08:50:57 -08:00
Stuart Breckenridge 212d3973a2 ✨ Add Lock Screen Summary Widget 2026-01-08 16:50:57 +08:00
Stuart Breckenridge 6458065e6a ⚡️ Widget encoding is syncronous
When the widget encoding is completed asynchronously and wrapped in `Task { @MainActor in }`, the app rarely (if ever) refreshes the widget unless attached to the debugger (in which case, unhelpfully, it works fine).

My thinking is that the app is being terminated _before_ `encode` is complete and therefore the call to refresh widget timelines is not happening consistently.

Moving the widget to synchronous encoding has resolved the widget refresh behaviour.
2026-01-08 13:50:36 +08:00
Brent Simmons 23a836dfea Trim default subscriptions list. 2026-01-07 21:33:11 -08:00
Stuart Breckenridge e55e5b5b3d ⚡️ Improve performance of Widget
Rewrite `encode()`:
- Remove file removal checks, writing data will replace
- Compare existing widget data to new data and determine which widgets actually need refreshed

Refactor `flushSharedContainer` to `removeStaleFaviconsFromSharedContainer`:
- No longer nuked in full
- Only favicons not accessed in the last seven days are deleted (in DEBUG builds this is 30 seconds)

Improve `writeImageDataToSharedContainer`:
- Favicons now use their md5 digest instead of a UUID (thus one image per feed, instead of one image per article)
- If the favicon exists it is not rewritten

Add `reloadTimelines`:
- Compares existing article arrays to new article arrays and will only reload specific widget timelines where there is a difference.
- `LatestArticle` now conforms to `Hashable` to make this possible.

Improve `SceneDelegate` selection logic:
- select the correct feed before selecting the article
2026-01-08 12:38:34 +08:00
Brent Simmons 2ac2a3c1bf Fix concurrency crash in ArticlePasteboardWriter. 2026-01-07 18:21:56 -08:00
Brent Simmons a9b4efeaab Remove most uses of forEach. (Note: not talking about SwiftUI ForEach, which is fine and good and should not be removed.) 2026-01-04 12:36:41 -08:00
Brent Simmons 9ff1bd9836 Fix various SwiftLint warnings. 2026-01-02 17:50:35 -08:00
Brent Simmons d9216a3275 Fix various SwiftLint warnings. 2026-01-02 15:58:36 -08:00
Brent Simmons d0d7d0c823 Fix various SwiftLint warnings. 2026-01-02 15:13:44 -08:00
Brent Simmons f94d0c8d40 Fix various SwiftLint warnings. 2026-01-02 10:30:01 -08:00
Brent Simmons c622172973 Fix various SwiftLint warnings. 2026-01-01 16:53:37 -08:00