NewsBlur/clients/ios/Classes/FeedDetailTableCell.h
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

86 lines
2.1 KiB
Objective-C

//
// FeedDetailTableCell.h
// NewsBlur
//
// Created by Samuel Clay on 7/14/10.
// Copyright 2010 NewsBlur. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "NewsBlurAppDelegate.h"
#import "NBSwipeableCell.h"
typedef NS_ENUM(NSUInteger, FeedDetailTextSize)
{
FeedDetailTextSizeTitleOnly = 0,
FeedDetailTextSizeShort,
FeedDetailTextSizeMedium,
FeedDetailTextSizeLong
};
@interface FeedDetailTableCell : NBSwipeableCell {
NewsBlurAppDelegate *appDelegate;
// All views
NSString *storyTitle;
NSString *storyAuthor;
NSString *storyDate;
NSString *storyContent;
NSString *storyHash;
UIImage *storyImage;
NSInteger storyTimestamp;
int storyScore;
BOOL isSaved;
BOOL isShared;
// River view
NSString *siteTitle;
UIImage *siteFavicon;
BOOL isRead;
BOOL isRiverOrSocial;
BOOL hasAlpha;
UIColor *feedColorBar;
UIColor *feedColorBarTopBorder;
UIView *cellContent;
}
@property (nonatomic) NSString *siteTitle;
@property (nonatomic) UIImage *siteFavicon;
@property (readwrite) int storyScore;
@property (nonatomic, readwrite) BOOL isSaved;
@property (readwrite) BOOL isShared;
@property (nonatomic) NSString *storyTitle;
@property (nonatomic) NSString *storyAuthor;
@property (nonatomic) NSString *storyDate;
@property (nonatomic) NSString *storyContent;
@property (nonatomic) NSString *storyHash;
@property (nonatomic) UIImage *storyImage;
@property (nonatomic) NSInteger storyTimestamp;
@property (nonatomic) UIColor *feedColorBar;
@property (nonatomic) UIColor *feedColorBarTopBorder;
@property (readwrite) BOOL isRead;
@property (readwrite) BOOL isReadAvailable;
@property (readwrite) BOOL isShort;
@property (readwrite) BOOL isRiverOrSocial;
@property (readwrite) BOOL hasAlpha;
@property (nonatomic) FeedDetailTextSize textSize;
- (void)setupGestures;
@end
@interface FeedDetailTableCellView : UIView {
UIImage *storyImage;
}
@property (nonatomic) NewsBlurAppDelegate *appDelegate;
@property (nonatomic) FeedDetailTableCell *cell;
@property (nonatomic) UIImage *storyImage;
@end