Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

7.2.0

Compare
Choose a tag to compare
@jessesquires jessesquires released this 15 Sep 05:32
· 202 commits to master since this release

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
πŸ’ͺ 😎 πŸ‘Š