2017-10-10 22:13:54 +02:00
|
|
|
//
|
2019-03-15 17:44:02 +01:00
|
|
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
2017-10-10 22:13:54 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2018-07-09 15:58:02 +02:00
|
|
|
@class ConversationStyle;
|
2019-03-15 17:44:02 +01:00
|
|
|
@class TSAttachment;
|
2017-10-10 22:13:54 +02:00
|
|
|
|
2019-03-19 18:17:34 +01:00
|
|
|
@protocol ConversationViewItem;
|
|
|
|
|
2018-06-27 20:53:31 +02:00
|
|
|
@interface OWSGenericAttachmentView : UIStackView
|
2017-10-10 22:13:54 +02:00
|
|
|
|
2019-03-19 18:17:34 +01:00
|
|
|
- (instancetype)initWithAttachment:(TSAttachment *)attachment
|
|
|
|
isIncoming:(BOOL)isIncoming
|
|
|
|
viewItem:(id<ConversationViewItem>)viewItem;
|
2017-10-10 22:13:54 +02:00
|
|
|
|
2018-07-09 15:58:02 +02:00
|
|
|
- (void)createContentsWithConversationStyle:(ConversationStyle *)conversationStyle;
|
2017-10-10 22:13:54 +02:00
|
|
|
|
2018-06-29 15:54:22 +02:00
|
|
|
- (CGSize)measureSizeWithMaxMessageWidth:(CGFloat)maxMessageWidth;
|
2017-10-10 22:13:54 +02:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|