95 Commits
Author SHA1 Message Date
Brent Simmons 0defd1959b Make sure sidebar shows on first run on Duo. 2026-11-15 21:44:42 -08:00
Brent Simmons 47ef9bc51c Stop using enum type as notification object, since that won’t work. 2026-10-26 14:31:16 -07:00
Brent Simmons 2ce850441b Make AppDefaults an enum instead of singleton class. 2026-10-22 13:46:32 -07:00
Brent Simmons 195b28f876 Add missing returns. 2026-08-31 20:06:15 -07:00
Brent Simmons ea6dab7a0e Skip selection restoration on external action (notification, for instance) to avoid competing navigations on launch. Fixes #4638. 2026-08-01 21:35:56 -07:00
Brent Simmons 75755af700 Use browser agent UA for image and theme downloads. Fixes #4868. 2026-07-29 10:17:31 -07:00
Brent Simmons 85a35f4e66 Remove the work-around for the iOS 27 beta split view crash that was fixed in iOS 27 beta 4. 2026-07-24 17:19:13 -07:00
Brent Simmons 393be1ac43 Disallow split view controller on large iPhones — works around crashed added by iOS 27 beta. 2026-07-22 14:31:49 -07:00
Brent Simmons 8f4a979608 Remove no-longer-needed code for suspending and resuming SQLite databases on iOS. 2026-06-06 16:04:56 -07:00
Brent Simmons 24a10f4874 Remove no longer needed call. 2026-03-07 17:05:56 -08:00
Brent Simmons 19bbe75678 Show the sidebar on first launch on iPad. 2026-01-31 20:59:07 -08:00
Stuart Breckenridge 1ef8945d10 Apply saved display mode in willConnectTo 2026-01-10 17:15:15 +08:00
Brent Simmons b2c9cb6fd8 Fix concurrency crash by running code on MainActor that’s supposed to be on MainActor. Fix #4934. 2026-01-08 21:24:30 -08:00
Stuart Breckenridge 117b5aa779 🩹 Fix selection logic
Improve `SceneDelegate` selection logic:
- select the correct feed before selecting the article
2026-01-08 16:31:58 +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
Stuart Breckenridge fc7b29abac 🩹 Restore widget article delay selection
How did this get removed between commits? 🤯
2026-01-06 14:02:18 +08:00
Brent Simmons 9ff1bd9836 Fix various SwiftLint warnings. 2026-01-02 17:50:35 -08:00
Brent Simmons 0832a7cf67 Fix various SwiftLint warnings. 2026-01-01 17:55:12 -08:00
Brent Simmons 6e015c1aba Merge (manually) state restoration changes from 6.2.1. 2025-12-30 21:00:07 -08:00
Brent Simmons 08e67d356e Use UserDefaults for state restoration. 2025-12-04 21:03:36 -08:00
Brent Simmons beeeabba24 Convert AppAssets to shared Assets. 2025-11-19 10:38:18 -08:00
Brent Simmons 9efde554d4 Clean whitespace-only lines. 2025-11-05 11:22:10 -08:00
Brent Simmons faba422eca Rename some instances of webfeed as feed. 2025-11-03 09:32:50 -08:00
Brent Simmons 5e39b569a7 Merged main to branch. 2025-11-01 15:53:33 -07:00
Brent Simmons 6f947467ac Update window color palette when the setting changes — not every time any setting changes. 2025-09-29 10:34:17 -07:00
Brent Simmons 4b7ea6d920 Mark classes as final when they can be, to communicate intent (don’t subclass these). Fix #4751. 2025-09-16 10:21:29 -07:00
Stuart Breckenridge 04f659f704 💄 Liquid Glass Redesign for NetNewsWire
💄 Add `MainFeedCollectionViewController`

💄 Add and hook up UICollectionView in Storyboard

🚧 Collection view loads temp cells

🚧 UICollectionView

- Adds capsule shape for iPad selection
- Add filter button, newItem button, settings button
- Configures the collection view based on platform
- implementsDidSelectItem at
- Clears cell background on iPad
- Adds cell textColor for iPad
- Storyboard changes

🚧 Adds unread count and favicon support

🚧 Smartfeed icons now display

🚧 iPhone cells are consistent in light/dark mode

💄 Sidebar modernised

Known bug: Sidebar text doesn’t adapt to dark/light mode changes on iPad

💄 Modern Sidebars

Fixes some accessibilty issues and adds swipe actions.

🩹 Become firstResponder

🩹 Workaround #4691

💡 Remove print statement

💄 Fixes to storyboard

- adjusts constraints on timeline header view
- launch screens now adopt look of liquid glass

Restore coordinator behaviour

⚡️ Tweaks to MainFeedCollectionViewController

- On iPhone, returning to the feeds view deselect the current feed with an animation.
- On iPhone, prefers large titles defaults to `false`
- Capsule background with smaller corner radius for iPhone added for selected status.

🩹 Fixes folder height

💄 Fix unread count vertical alignment

💄 Restores header & use UICellConfigurationState

💄 Sidebar tweaks

💄 Folders now highlight on as drop target

💄 Sidebar fixes

- Moves more code to cell configuation state
- Allows sidebar to move to larger sizes

🩹 Fixes #4694  folder expansion using keyboard

💄 Adds new cell types for the Timeline

♻️ Remove dead code and re-orders to viewWillApp

🩹 Reordering of code from viewWA to viewDA

💄 Removes unused code, tweaks layout

💄 Multiple tweaks to sidebar and timeline

💄 Add missing constraint

♿️ Puts timeline metadata in a stackview

🎨 Adds stackview function

💄 🚑️ Moves to modern UISliders

Timeline customiser now uses modern UISliders as they have tickmark functionality.

`TickMarkSlider` marked as deprecated.

💄 Make All Unread cell icon tint correctly

💄 Extend edges under opaque bars on timeline

💄 Image View Controller uses modern button style

🚚 Renames `MainTimelinePseudoFeedCell`

💄 Improve feed selection animations

🩹 Use shouldSelectItem to handle selection logic

🩹 Fix fill settings for stack view

💄 Comment out usage of MainTimelineTitleView

🔧 Remove iOS cells from macOS target

💄 Give columns some flexibility

💄 Fix chevron size and alignment

💄 Don’t prefer large navigation bar titles

They create a delay in animation on iPhone.

🩹 Fixes nav bar subtitle performance

🎨 Minor refactor

- Switch logic in cell state
- Prefer traitCollection.userInterfaceIdiom

➕ Add updated mac code for the About view

💄 NSGlassVisualEffectView for About
2025-07-23 21:58:47 +08:00
Brent Simmons 0493e86811 Fix crash (hopefully) by moving call that was triggering a code path that crashed. 2025-04-26 15:11:14 -07:00
Brent Simmons aa75efaa2e Fix test-time crashes by making sure some main thread code runs on main thread. 2025-04-20 21:21:38 -07:00
Brent Simmons 5c60e75435 Change how first run works with split view — use .oneBesideSecondary display mode but explicitly show the Feeds view at startup. 2025-01-11 21:33:04 -08:00
Brent Simmons f180c37d1a Make sure iPad shows Feeds view on first run. 2024-12-30 21:32:18 -08:00
Maurice Parker a6b19fb22a Change to new iOS 3 panel UISplitViewController 2024-12-22 22:03:08 -08:00
Brent Simmons d4073b205f Bring in code from previous iOS release. 2024-12-04 18:39:16 -08:00
Brent Simmons d31c9c1766 Remove unused imports of the Zip module. 2023-06-26 09:56:26 -07:00
Stuart Breckenridge 8b39dc4abb Uses SceneCoordinator
Adds a `func` to SceneCoordinator to handle dismisses vis-a-vis using notifications.
2021-11-08 09:52:12 +08:00
Stuart Breckenridge 0db88c5f92 Fixes #3335
When the app is brought to the foreground from an external action (e.g., tapping on the widget, opening from a notification), a notification is posted (with a slight delay).

`MasterFeedViewController` and `SettingsViewController` are observers. `MasterFeedViewController` will dismiss any `SFSafariViewController`s that are presented, while `SettingsViewController` will dismiss itself.
2021-11-06 22:43:50 +08:00
Maurice Parker 5716bc3d19 Fix compiler warnings 2021-09-30 09:35:44 -05:00
Stuart Breckenridge 82a62712ce Better error messages for decoding issues 2021-09-21 10:43:12 +08:00
Stuart Breckenridge c29afd2677 try? changed to try with error handling 2021-09-21 09:22:45 +08:00
Stuart Breckenridge 78e0595708 Various ThemeDownloader Updates
- `try` added where applicable to ArticleTheme inits
- `ArticleThemePlist` has fixed spelling of theme identifier and conforms to Equatable
- `ArticleTheme` now uses `ArticleThemePlist`
-  `ArticleThemeDownloader` is now a class
- `ArticleThemeDownloader` will now download themes to Application Support/NetNewsWire/Downloads on macOS and iOS.
- `ArticleThemeDownloader` will remove downloaded themes from the Download folder when the application is closed.
- macOS app delegate now observes for theme download fails
- Error display code moved from SceneDelegate to SceneCoordinator so that it can use existing presentError on rootVC.
2021-09-21 09:10:56 +08:00
Stuart Breckenridge a1b01384d3 refactors downloader code for macOS & iOS
More consistent code across platforms.
2021-09-20 19:34:25 +08:00
Stuart Breckenridge eb8f27b457 Removes files if unzip is not successful 2021-09-20 09:48:31 +08:00
Stuart Breckenridge afd952fbc2 refactors iOS theme downloads 2021-09-20 09:36:09 +08:00
Stuart Breckenridge 4fab4ffa7c download themes using url scheme
this build enables iOS functionality only.
2021-09-19 20:31:45 +08:00
Maurice Parker cad91d9415 Add the ability to import themes on iOS 2021-09-12 14:46:15 -05:00
Maurice Parker b8419737cf Handle the feed protocol on iOS. Fixes #2703 2021-01-05 00:11:09 -06:00
Stuart Breckenridge 8498e723ce Widget Performance 2020-12-03 20:32:26 +08:00
Maurice Parker 1a65211f19 Change how smart feeds are shown so that they appear even if they have been filtered 2020-11-19 05:23:07 -06:00
Stuart Breckenridge fd33dc9be1 fixes cold launch from widget 2020-11-19 17:29:03 +08:00
Stuart Breckenridge fa26fd565e makes feed icons a bit bigger 2020-11-19 16:32:44 +08:00