7.2.0
See the 7.2.0 milestone for the complete list of fixes and improvements.
Enhancements β¨
π New solution for custom fonts (#347)
Using a custom font has been problematic for awhile. This mostly because there are tons of edge-cases regarding how glyph sizes are computed. To address this, the JSQMessagesCollectionViewFlowLayout
object has a new property:
@property (strong, nonatomic) id<JSQMessagesBubbleSizeCalculating> bubbleSizeCalculator;
With this, you can now provide your own object conforming to the JSQMessagesBubbleSizeCalculating
protocol and calculate the bubble sizes you need for your custom font! π The library provides a default value for this, an instance of JSQMessagesBubblesSizeCalculator
, which maintains existing behavior.
π Fixed-width bubbles (#1112) β Thanks @walsh2000!
See the docs for the aforementioned JSQMessagesBubblesSizeCalculator
. Using fixed-width bubbles will prevent message bubbles from resizing on rotation to landscape.
π Text cells can now be deleted (#970)
Opt-in to this behavior using the following:
// in viewDidLoad
[JSQMessagesCollectionViewCell registerMenuAction:@selector(delete:)];
// then override the method
- (void)collectionView:(JSQMessagesCollectionView *)collectionView didDeleteMessageAtIndexPath:(NSIndexPath *)indexPath;
π Localizations for Korean (#1149) and Arabic (#1130)
Thanks @chanil1218 and @qaysdwekat!
π Better pin image drawing in JSQLocationMediaItem
(#1162)
Pins on location item maps are now perfectly centered. π
Thanks @harlanhaskins!
π Intercept paste events from the input textView (#1136)
See the docs for JSQMessagesComposerTextViewPasteDelegate
.
Thanks @harlanhaskins!
π Spacing for input toolbar items (#1035)
The JSQMessagesToolbarContentView
class has gained 2 new properties: leftContentPadding
and rightContentPadding
. See the docs for details.
Thanks @kohtenko!
Bugs closed π
Stats π
Due to the hard work from @orta and the @cocoapods team, I have some fun statistics to share about the library!
As of this writing:
- Total downloads: 6013
- Total apps: 419
- See more on the library's cocoapods page
Thanks β€οΈ
As always, many thanks to all the contributors to this successful release!
β JSQ
πͺ π π