mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
c958c7909c
Media bubbles (for photo, video and animated) sizes are calculated using shared logic. The bubbles are fixed width and their height is calculated based on the aspect ratio of the underlying image (clamped to a reasonable min/max height). Fixes #1270 // FREEBIE
15 lines
320 B
Objective-C
15 lines
320 B
Objective-C
//
|
|
// JSQMediaItem+OWS.h
|
|
// Signal
|
|
//
|
|
// Created by Matthew Douglass on 10/18/16.
|
|
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import <JSQMessagesViewController/JSQMediaItem.h>
|
|
|
|
@interface JSQMediaItem (OWS)
|
|
|
|
- (CGSize)ows_adjustBubbleSize:(CGSize)bubbleSize forImage:(UIImage *)image;
|
|
|
|
@end
|