favorite settings basic fuction

This commit is contained in:
TrueZhuanjia
2025-06-04 01:49:59 +08:00
parent 2775ca09c7
commit 59660840e4
13 changed files with 191 additions and 62 deletions
@@ -140,6 +140,7 @@
@class SWRevealViewController;
@protocol SWRevealViewControllerDelegate;
@protocol RearNavigationBarMenuDelegate;
#pragma mark - SWRevealViewController Class
@@ -318,6 +319,7 @@ typedef NS_ENUM(NSInteger, SWRevealToggleAnimationType)
// Delegate
@property (nonatomic,weak) id<SWRevealViewControllerDelegate> delegate;
@property (nonatomic,weak) id<RearNavigationBarMenuDelegate> navBarMenuDelegate;
@property (nonatomic,assign) bool isStreaming;
@property (nonatomic,assign) bool mainFrameIsInHostView;
@@ -329,6 +331,7 @@ typedef NS_ENUM(NSInteger, SWRevealToggleAnimationType)
@end
#pragma mark - SWRevealViewControllerDelegate Protocol
typedef enum
@@ -340,6 +343,15 @@ typedef enum
} SWRevealControllerOperation;
#pragma mark - RearNavigationBarMenuDelegate Protocol
@protocol RearNavigationBarMenuDelegate<NSObject>
@optional
- (void)switchToFavoriteSettings;
- (void)switchToAllSettings;
@end
@protocol SWRevealViewControllerDelegate<NSObject>