mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
32 lines
787 B
Objective-C
32 lines
787 B
Objective-C
//
|
|
// UserRowView.h
|
|
// ASDKgram
|
|
//
|
|
// Created by Hannah Troisi on 3/13/16.
|
|
// Copyright © 2016 Hannah Troisi. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "UserModel.h"
|
|
#import "PhotoModel.h"
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, UserRowViewType) {
|
|
UserRowViewTypeLikes,
|
|
UserRowViewTypeComments,
|
|
UserRowViewTypePhotoCell
|
|
};
|
|
|
|
@interface UserRowView : UIView
|
|
|
|
+ (CGFloat)heightForUserRowViewType:(UserRowViewType)type;
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
|
|
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
|
|
- (instancetype)initWithFrame:(CGRect)frame withPhotoFeedModelType:(UserRowViewType)type NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (void)updateWithPhotoModel:(PhotoModel *)photo;
|
|
- (void)updateWithCommentModel:(CommentModel *)comment;
|
|
|
|
@end
|