New Features
-
RedditFilter Settings in the native menu - a "RedditFilter Settings" entry now appears directly inside the "My Account" bottom sheet that opens when tapping the three-lines button in the profile drawer, complete with a dedicated SF Symbol icon.
-
3-finger long press (fallback) - holding 3 fingers on screen for 1 second opens RedditFilter Settings from anywhere in the app, without going through the profile drawer.
-
3-finger short press (debug) - a brief 3-finger press shows an on-screen log overlay with a "Copy to Clipboard" option for debugging purposes.
Technical
-
Identified that Reddit uses
RPLBottomSheetPanModalWrapperViewController(RedditSliceKit) backed by a SwiftUI List /UICollectionViewinstead of a standardUIAlertController. -
Implemented
RFCollectionWrapper— aUICollectionViewDataSourceandUICollectionViewDelegatewrapper that injects an extra cell at the bottom of the sheet's list. -
Cell tap is handled via a
UITapGestureRecognizerattached directly to the cell, since SwiftUI intercepts and swallowsdidSelectItemAtIndexPath. -
Hook targets
viewDidAppear: filtered to VCs whose class name containsBottomSheetpresented from VCs whose class name containsProfile,Account, orDrawer.
Bug Fixes
- Fixed default value initialization in
%ctor: keyskRedditFilterRecommended,kRedditFilterNSFW,kRedditFilterAwards,kRedditFilterScores, andkRedditFilterAutoCollapseAutoModwere incorrectly all usingkRedditFilterPromotedas the lookup key in theobjectForKey: check.