Commit graph

158 commits

Author SHA1 Message Date
David Sinclair
55556c730b Merge branch 'dejal' into catalyst 2023-07-04 17:15:24 -07:00
David Sinclair
e6548c7cf7 #1797 (cold boot should preserve feeds and icons)
- Now uses the Documents directory instead of the Caches one, to avoid losing data in low disk space.
- Exisitng data is copied to the new location if needed.
2023-07-04 15:23:01 -07:00
David Sinclair
179acea063 #1797 (cold boot should preserve feeds and icons)
- Fixed possibly related race condition issue.
- Added logging for cache loading.
2023-06-26 21:51:36 -07:00
David Sinclair
fec83d79b6 #1720 (Grid view)
- Restored the legacy table view for the list layout.
- Still uses the modern SwiftUI view for the grid layout.
- Added an option in Preferences (below the “Story titles layout” for “List style”, to choose between “Standard” (aka the table) and “Experimental” (aka the grid-based list) so we can continue to improve the nicer modern list.
- Removed the swipe gesture from the grid view.
- Fixed a crash putting the app in the background.
- Fixed some other issues.
2023-05-25 21:47:34 -07:00
David Sinclair
0475969c32 #1720 (Grid view)
- Fixed not showing story content when switching from List to Grid layout.
- Fixed sometimes showing the wrong story when switching from Grid to List layout.
- Fixed scrolling to the story when switching from List to Grid layout.
- Some cleanup.
2023-04-19 21:35:34 -07:00
David Sinclair
7b28791603 #1720 (Grid view)
- Experimenting with using SwiftUI for the list and grid views. Working really well!
- Beginnings of a real data model, at last; probably only for caching stories initially.
2023-01-21 16:20:53 -06:00
David Sinclair
a1777280d9 #1720 (Grid view)
- Work in progress on refactoring the feed detail cell to view-based Swift, to make it easier to maintain, and to use autolayout to rearrange the content.
2022-12-12 22:04:04 -06:00
David Sinclair
3b1c824ab3 Merge branch 'dejal' into catalyst 2022-11-24 20:30:06 -06:00
David Sinclair
48c1d80284 #1747 (marking a feed as read takes you to the wrong feed)
- Another tricksy edge case: was picking the wrong feed if viewing Unread with a nested folder within a collapsed folder! Now much smarter about that.
2022-11-21 11:17:54 -06:00
David Sinclair
22bbdf0e03 Replaced background fetch with modern mechanism 2022-11-09 21:14:39 -07:00
David Sinclair
da305caeb9 #1718 (nested folder bug)
- The Feeds list now shows only the folder name for nested folders, instead of parent ▸ subfolder.
- A folder that has only subfolders, without any directly contained feeds, is now displayed in the list.
- Selecting a folder will now show the feeds within all subfolders (plus any direct feeds).
- Collapsing a folder with subfolders will now collapse them too, as one might expect.

(Some interesting challenges with this one!)
2022-08-02 21:46:26 -07:00
David Sinclair
4cf9c5b022 #1695 (Premium Archive subscription) 2022-06-22 21:35:54 -06:00
David Sinclair
7328dfdc24 #1604 (preference for automatically opening folder)
- Added a new “When opening app” preference for what folder to show on launch.
- Implemented for both iPhone and iPad.
- Fixed loading default prefs.
- Removed the obsolete restore position preference.
- Enhanced the preferences views to support letting the app add custom values, to enable choosing any folder.
2022-04-25 14:38:24 -04:00
David Sinclair
07dc071a02 #1607 (widget is slow to reload)
- Hidden the Widget Site Stories smart folder.
- Changed the Widget Sites preferences to only allow selecting feeds for one folder, or all.
- The selected folder is displayed when tapping a feed in the widget.
- N.B. This is a temporary solution until each widget can have settings for what folder or feed to show.
2022-03-11 21:30:28 -07:00
David Sinclair
3722d53121 #1334 (modern widget)
- Fixed issue with iPhone not loading a story.
- Added logic to better handle not finding a story for other reasons.
2022-01-27 20:06:50 -08:00
David Sinclair
12e9b172a5 #1500 (show first story options)
- On iPad, added a feed detail preference to open the first story (default) or list the stories
- Didn't do this on iPhone, as it makes less sense there; going back from the story to the list would just bounce back into the story. I could add extra logic to avoid that if you really want this option on iPhone too.
- Both are back to the old marking as read behavior.
2022-01-25 15:14:30 -08:00
David Sinclair
e1254ad172 #1568 (reloading feeds when finding story)
- Now always reloads the feeds when opening a notification, and waits till that completes to find the story.
2021-12-08 17:18:49 -07:00
David Sinclair
8ac4801257 #1500 (show first story automatically)
- Work in progress.
2021-06-12 21:51:08 -07:00
David Sinclair
a83cf508ee #1491 (scroll bounce at story bottom)
- Added the column layout to the Preferences on iPad.
- Two column layout is now the default.
2021-06-10 19:50:56 -07:00
David Sinclair
125c9f77a3 #817 (three column layout)
- Cleanup and removal of obsolete code and resources.
2021-06-05 21:50:57 -07:00
David Sinclair
cad8017b5c #1455 (crash opening notifications) 2021-06-04 21:49:08 -07:00
David Sinclair
fbedad1c7e #1490 (split control to feeds menu) 2021-05-29 21:25:43 -07:00
David Sinclair
e0fce3f509 #817 (three column layout)
- Removed the obsolete container view.
- Tweaked a few places that still used it.
2021-04-24 21:55:36 -07:00
David Sinclair
a93b27531e #1451 (small tweaks) 2021-04-22 21:49:13 -07:00
David Sinclair
f091832e6d #817 (three column layout)
- Since the UIPageViewController approach to paging had multiple issues that were proving impossible to work around, I decided to revert to the old UIScrollView-based approach.
2021-01-29 20:10:53 -08:00
David Sinclair
53d2580564 #817 (three column layout)
- iPhone fixes.
2020-11-25 21:39:11 -08:00
David Sinclair
04a8f7ab3b #817 (three column layout)
- Split view tweaks.
- iPhone support.
2020-11-24 21:34:45 -08:00
David Sinclair
8cc59dccf4 #817 (three column layout)
- More progress on the story pages stuff.
2020-09-26 20:30:35 -07:00
David Sinclair
8f7f485043 #817 (three column layout)
- Numerous changes for three-column layout support and other projects.
- Work in progress.
2020-08-29 21:19:32 -07:00
David Sinclair
5fe73d431b #817 (three column layout)
- Fixing warnings.
- Adding Swift subclasses of ObjC ones.
2020-08-27 21:26:12 -07:00
David Sinclair
76986f504b #1325 (show muted sites in All feeds view)
- Muted sites now appear in All feeds view.
- They don't appear in the other views.
- They have the same muted icon as on the web.
2020-06-15 19:57:06 -07:00
David Sinclair
08d8604d32 #1298 (saved searches)
- Saved searches (if any) are now listed near the bottom of the feeds list.
- When one is tapped, the folder or feed is displayed and the search performed.
- When showing a saved search, a Delete Saved Search command appears at the top of the menu.
- When showing a non-saved search, a Save Search command appears in the menu.
2020-06-11 21:02:22 -07:00
David Sinclair
7c208649ef #1298 (saved searches)
- Work in progress.
2020-05-27 21:26:44 -07:00
David Sinclair
bfe81aff54 #1304 (not restoring state)
- Fixed issue with background operations that could result in the app getting killed.
2020-05-26 15:35:53 -07:00
David Sinclair
0659438f57 #1306 (status bar during fullscreen)
- Added a “Hide status bar” preference below the “Full screen” one.
- It is only shown when “Full screen” is on.
- Defaults to on, which does the previous behavior.
- If turned off, the status bar remains visible when scrolling to full-screen.
- In this situation, a fade-out gradient will be shown under the status bar, so the story content dims to avoid conflicting with the status bar content.
2020-04-22 19:31:08 -07:00
David Sinclair
383384b6df #1270 (replacing UIWebView with WKWebView)
- All app-specific uses of UIWebView have been replaced with WKWebView.
- Some third-party uses remain.
- More testing required.
- Note that I’ve bumped the minimum iOS version to iOS 11, since that is needed for WKWebView support.
- Committing to a new branch until ready.
2020-02-23 15:21:32 -08:00
David Sinclair
ed30ad75e2 #1238 (statistics)
- Added Statistics to the preferences for the left swipe in the feeds list.
- A bit of refactoring to support displaying the popover from a cell on iPad.
2020-01-31 15:50:03 -08:00
David Sinclair
fa3f60a531 NewsBlur iOS: #1238 (statistics)
- Added a Statistics item to the feed detail menu (please provide an icon).
- This command will show the statistics web page in a popover on iPad, or pushed on iPhone.
- Extended the “original” view controller to support showing a custom page without changing the title or including the navigation bar buttons.
2020-01-28 16:10:16 -08:00
David Sinclair
a50bb09141 #1238 (statistics)
Prototype using a Safari view controller.  Will do properly in a WKWebView.
2020-01-27 20:53:31 -08:00
David Sinclair
a51dcd20e9 #1162 (widget)
- Fixed the story sometimes not getting displayed in the app when tapping in the widget.
- Now uses the scaled thumbnails provided by the server.
- Split the image cache into separate caches for feed images and story images.
- Now prunes the cached story images to only those currently displayed.
2020-01-23 15:20:28 -08:00
David Sinclair
b314b6f289 #1162 (widget)
Done!  See my comment in the issue for details.
2019-12-20 19:09:20 -08:00
David Sinclair
106c970b4a iOS: #1236 (offline text)
- Added a "Download text" preference.  Defaults on.
- If on, the text is fetched for feeds that are in text view when fetching new stories.
- The text is fetched after stories, and before images, using a similar mechanism.
- The text is stored in a new "cached_text" database table.
- The text is deleted when the story is deleted.
- When displaying a text view, the cached text is used if available, otherwise it is fetched as before.
2019-10-25 20:52:51 -07:00
David Sinclair
165ec98ceb #1208 (iOS 13 support) 2019-09-21 14:51:55 -07:00
David Sinclair
ed5600ac0b iOS: #1227 (feed order preference)
Note that need to pull-to-refresh to make the preference take effect, since it sorts on loading the feeds. I think that’s reasonable; not something people would change often.
2019-08-24 15:06:50 -07:00
David Sinclair
b05656db07 iOS: fixed #1223 (unable to mark unread)
(See details in following comment.)
2019-08-22 12:03:39 -07:00
David Sinclair
bb4c258b71 iOS: #1201 (show hidden stories)
- Implemented the feature, showing or hiding hidden stories, only offering it if there are some.
- I used the “all” icon in the menu as a placeholder; please provide one you’d prefer.
- Since the crusty old menu mechanism doesn’t handle dynamic items well, I took this opportunity to migrate the feed detail menu to the block-based MenuViewController mechanism, resulting in significant code reduction.
- Enhanced MenuViewController to support the theme controls etc, so other menus can be more easily migrated next time they need to be updated.
2019-06-21 20:09:09 -07:00
David Sinclair
6317d60da3 iOS: #1138 (Siri Shortcuts)
Basic support for Siri Shortcuts; more to come. See the following comment on the issue for more info.
2019-04-24 20:32:04 -07:00
David Sinclair
fc1fa9a941 iOS: #1156 (story titles height)
Added segmented control in feed detail list.
2019-02-05 21:05:34 -08:00
David Sinclair
7c33270c5b iOS: premium manager
Purchases could fail if they require approval, and complete after leaving the premium view, or on next app launch. So I’ve split the premium business logic into a separate manager that maintains a permanent transaction observer.
2018-10-04 17:00:22 -07:00
David Sinclair
41589dc2cb iOS: done #1111 (save stories offline) 2018-09-13 10:44:00 -07:00