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
💪 😎 👊