From 675d2bd7c52ef0e191d52784f20f3c35e4b308f6 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 17 Oct 2018 00:30:51 +0300 Subject: Layout fixes --- Juick/Views/ConversationCell.m | 6 +++--- Juick/Views/ConversationCell.xib | 29 +++++++++++++---------------- Juick/Views/MessageCell.m | 1 + 3 files changed, 17 insertions(+), 19 deletions(-) (limited to 'Juick') diff --git a/Juick/Views/ConversationCell.m b/Juick/Views/ConversationCell.m index 873f21e..ca09cd0 100644 --- a/Juick/Views/ConversationCell.m +++ b/Juick/Views/ConversationCell.m @@ -7,6 +7,7 @@ // #import "ConversationCell.h" +#import "ColorScheme.h" @implementation ConversationCell @@ -16,10 +17,9 @@ } -(void) configureWithChat:(Chat *)chat { + self.chatName.textColor = [ColorScheme linkColor]; self.chatName.text = chat.uname; - self.lastMessage.text = @""; - self.unreadMarker.text = @""; - __weak UIImageView *weakAvatar; + __weak UIImageView *weakAvatar = self.avatar; [self.avatar setImageWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://i.juick.com/a/%d.png", [chat.uid intValue]]]] placeholderImage:nil success:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nullable response, UIImage * _Nonnull image) { [UIView transitionWithView:weakAvatar duration:0.3 diff --git a/Juick/Views/ConversationCell.xib b/Juick/Views/ConversationCell.xib index 65f9766..09b5a7e 100644 --- a/Juick/Views/ConversationCell.xib +++ b/Juick/Views/ConversationCell.xib @@ -18,41 +18,38 @@ - + - - + + - - + + - - + + - - - - - + +