Commit Graph
246 Commits
Author SHA1 Message Date
Brent Simmons 4fa0b65d98 Convert from default MainActor isolation to unspecified default isolation. 2025-11-17 21:53:40 -08:00
Brent Simmons b2875736b3 Simplify MainThreadOperation and MainThreadOperationQueue. Make MainThreadOperation a class instead of a protocol. (The extremely rare case where subclasses are a good idea.) 2025-11-11 19:09:33 -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 48bb1b407c Rename some instances of webfeed as feed. 2025-11-02 16:17:42 -08:00
Brent Simmons 37c332554d Rename article.webFeed to article.feed. 2025-11-02 15:12:00 -08:00
Brent Simmons 69aa4e734f Fix deprecation warning. 2025-11-02 10:30:36 -08:00
Brent Simmons 5e39b569a7 Merged main to branch. 2025-11-01 15:53:33 -07:00
Brent Simmons 4a9a9e755f Merge branch 'task/ios-wkuserscript-4309' 2025-09-28 11:55:37 -07:00
Brent Simmons 5a8403c053 Download and display image, since we can no longer get the image from the webview due to security policies. 2025-09-28 11:51:42 -07:00
Stuart Breckenridge 00d34234ff 🔥 Remove debug UIResponder code 2025-09-28 10:54:46 +08:00
Stuart Breckenridge c095334cff 🩹 Stop keyboard reappearing after it dismissal
Only allow the article search bar to start editing viewDidAppear. This stops the keyboard appearing at the wrong time. Fixes #4796
2025-09-28 10:53:25 +08:00
Brent Simmons 3cf3bc5763 Use shared WebViewConfiguration.configuration. Make sure allowsContentJavaScript is accessed on main thread. 2025-09-23 10:09:32 -07:00
Brent Simmons f80d081874 Fix a typo. 2025-09-23 10:08:57 -07:00
Brent Simmons 95d2d0e07b Remove extraneous whitespace. 2025-09-23 10:08:39 -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 cd31f676ce 📌 Apply #4323 js preferences to 7.0 2025-09-14 17:38:27 +08:00
Stuart Breckenridge 402fbd3da3 🩹 Amend #4323 JS pref changes cause reload only 2025-09-14 11:19:01 +08:00
Stuart Breckenridge b2e3ed7b92 Address #4323 Feedback
Note: the diff for Settings.storyboard is large, but it’s only to add a tableviewcell for the enableJS toggle.
2025-09-13 12:32:48 +08:00
Stuart Breckenridge 278994c86d Fixes #4323 adds option to disable js on iDevices 2025-09-11 22:19:35 +08: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
Stuart Breckenridge 29a63aa065 💄 Hide subtitle in article view 2025-06-13 19:54:29 +08:00
Brent Simmons 4d930dd5e4 Restore changes reverted in previous beta. 2025-05-09 20:30:04 -07:00
Brent Simmons 9aa93166b7 Revert more changes since 6193 in hopes of fixing the scrolling bug. 2025-05-09 09:22:34 -07:00
Brent Simmons ee9c14783f Revert webview changes that might be the cause of the no-scroll-on-coming-back-from-sleep bug. 2025-05-08 21:29:58 -07:00
Ethan Wong e6a11197fe Allow ImageViewController to be closed with the space key on physical keyoard for iOS. 2025-04-28 21:04:02 -07:00
Brent Simmons b7d4041781 Simplify WebView loading on iOS. 2025-04-28 21:00:31 -07:00
Stuart Breckenridge ad12d1c1de 🚑️ Fixes #4483 by showing bars on rotation
On rotation, if the device is a .phone and it is transitioning to a `.regular` horizontal size class—it’s big—bars in the article view are surfaced to workaround a crash. This doesn’t affect behaviour on smaller iPhones or iPads.
2025-01-12 20:45:01 -08:00
Brent Simmons dd8fb412ba Create and use logicalArticleFullscreenEnabled — so it can’t think it’s in fullscreen mode without fullscreen mode being allowed. 2025-01-11 22:01:27 -08:00
Brent Simmons 65df9c000c Fix bug where full-screen-ness was getting forgotten and top and bottom toolbars were showing. 2024-12-30 16:09:10 -08:00
Brent Simmons 2ac332c41a Fix bug where a toolbar would be erroneously shown when in full screen and returning from view an image. Fix #4449. 2024-12-30 15:54:07 -08:00
Maurice Parker a6b19fb22a Change to new iOS 3 panel UISplitViewController 2024-12-22 22:03:08 -08:00
Brent Simmons 2056adf5d6 Rename WebFeedIconDownloader to FeedIconDownloader. 2024-12-14 10:28:28 -08:00
Brent Simmons b49f1e298f Restore ability to swipe back from an SFSafariViewController. 2024-12-12 21:17:01 -08:00
Brent Simmons 903155aba9 Fix several warnings. 2024-12-07 14:56:58 -08:00
Brent Simmons 836d31875d Fix several warnings. 2024-12-07 14:52:38 -08:00
Brent Simmons 6833c18991 Restore ability to tap image and display alt text. 2024-12-07 13:38:03 -08:00
Brent Simmons df8b404e1d Present SFSafariViewController using .overFullScreen instead of default .fullScreen — avoids a crash in -[UINavigationBar layoutSubviews]. Fix #4418. 2024-12-05 22:06:00 -08:00
Brent Simmons 05ea769c12 Fix build errors. 2024-12-04 18:43:47 -08:00
Brent Simmons 279a99259e Use WKUserScript to inject scripts into the page. Use permalink as base URL. 2023-11-25 11:29:56 -08:00
Brent Simmons 7f295797ee Remove last references to isFeedProvider. Fix a couple warnings. 2023-06-25 16:19:20 -07:00
Dimitris Apostolou 94ae4d348c Fix typos 2022-01-05 00:25:20 +02:00
Brian Sanders a731397486 Fixes #2369: Video playback is reset on rotation
The viewWillTransition(to:with:) method in WebViewController was introduced to
fix #3041, so I added an alternative solution using a resize handler in JS.
2021-12-04 18:43:53 -05:00
Maurice Parker f44308c0c5 Make state restoration work on both the iPad and the iPhone 2021-09-13 02:22:15 -05:00
Maurice Parker 5001d82355 Restore article scroll position on iOS 2021-09-13 01:11:23 -05:00
Maurice Parker 7646029f2e Reload the web view when the Theme changes 2021-09-12 15:44:24 -05:00
Maurice Parker 512e83d786 Refactor Styles to now be Themes 2021-09-07 16:58:06 -05:00
Maurice Parker 56bbfe713b Fix regression that prevented universal links from working 2021-09-01 14:13:04 -05:00
Stuart Breckenridge 178e737040 Converts to a browser preference to a Bool. 2021-08-26 10:27:23 +08:00
Stuart Breckenridge 3bc18e2891 Reduces Browsers to in-app and system default 2021-08-25 15:05:18 +08:00