Skip to content

Releases: Giphy/giphy-ios-sdk

v2.2.3

29 Mar 21:44
3c77cf7
Compare
Choose a tag to compare
  • Support for Xcode 14.3
  • Compiled with Xcode 14.3 RC 2
  • May create issues for supporting iOS 12 and below

v2.2.2

10 Jan 22:34
699483a
Compare
Choose a tag to compare
  • fixes an issue with the theme (GPHTheme) when the device is in dark mode

v2.2.1

30 Nov 18:03
48fdb55
Compare
Choose a tag to compare

Fixes some bugs around the new Emoji Drawer feature

1036: Emoji drawer size / placement incorrect if "span count" != 5

1037 Drawer positioning incorrect if collection view scroll offset > 0

1039:GPHTheme not properly passed to emoji drawer with GiphyGridController implementation

v2.2.0

09 Nov 10:28
0d264c5
Compare
Choose a tag to compare

Emoji Drawer

This release improves the experience for the GIPHY emoji tab by enabling users to browse and select variations for a given emoji, such as alternative skin tones. This is a feature standardized by a number of popular platforms and is now possible in the GIPHY SDK.
giphy-emoji-santa
giphy-peace-sign

If you already have the emoji content type included in your integration, no additional code is necessary on your end to adopt this new feature.

Add the .emoji GPHContentType to your integration like so:
giphyViewController.mediaTypeConfig = [.stickers, .emoji]
or
giphyGridController.content = GPHContent.emoji
If you have any ideas for how we could further better the GIPHY emoji experience for your users, let us know here.

This release also includes a number of minor bug fixes and code cleanup.

v2.1.22

02 Jun 21:20
30047d1
Compare
Choose a tag to compare
  • Updates the example apps with the latest SDK versions
  • Addresses Issue #203: All core request functions now provide an optional timeoutInverval parameter, so that developers may override the default value of 60.
GiphyCore.shared.gifByID("", timeoutInterval: 30) { response, error in 
        }
  • Adds two new optional functionals to the GiphyDelegate, for API request error logging.
func errorDidOccur(_ error: Error) {
}
func syntheticErrorDidOccur() {
}
  • Exposes the GIPHY Clips (GIFs with Sound!) preview screen view controller, so that developers may utilize this UI outside of the GiphyViewController context.

For developers providing Clips content in a GiphyGridController based integration, we recommend using this GPHClipsViewController component to enable your users to preview the clip with sound before selecting it.

Present a single clip in a view controller like so:

let clipsPreview = GPHClipsViewController(media: media)

v2.1.21

21 Mar 18:03
c34e825
Compare
Choose a tag to compare
  • addresses a minor bug where toggling playback between multiple clips players created an issue where proper UI state wasn't maintained (missing audio icon)

v2.1.20

08 Mar 23:03
21d4e77
Compare
Choose a tag to compare
  • addresses issue #195: issue where search bar issue not properly shown if emoji is set as the first content type

clips refactor

  • significant refactor to improve video playback code quality and memory usage
  • previously, we powered clips in-line playback by instantiating a new video player for every new clip added to the collection (in a chat, for example). maintaining multiple active players led to unnecessary memory management & resource consumption
  • the new solution entails reusing a single video player across multiple cells:
let playerView = GPHVideoPlayerView()
let videoPlayer = GPHVideoPlayer()
videoPlayer.loadMedia(media: media, autoPlay: true, muteOnPlay: true, view: videoPlayerView, repeatable: true)
  • relevant documentation has been updated in the GPHVideoPlayer + GPHVideoPlayerView section of the clips.md file
  • the Swift sample project has also been updated to showcase necessary changes

v2.1.18

16 Feb 20:18
27edbcb
Compare
Choose a tag to compare
  • temporary changes that reduce the frequency of a crash noted by developers using video components in the React Native SDK
  • we have a plan to fully resolve the issue in a future lease

v2.1.17

25 Jan 19:48
5797527
Compare
Choose a tag to compare

Deep Press Previews:

This new feature enables users to "deep press" on a piece of content in the grid and view a context menu which includes various options such as select, more by @user-name, and remove from recents (only shown in the case the grid is populated with previously selected content). This behavior is accomplished with UIContextMenuInteraction.

While this feature applies to all content types in the GIPHY SDK, we were motivated to develop it specifically to enhance the experience for Clips (GIFs With Sound!), so that users may much more seamlessly experience video content without having to leave the context of the grid.

Whereas previously the only method of hearing a Clip was to tap on its silent preview in the grid, taking the user to the detail screen, users may now "deep press" on the preview to see and hear it in inline.

This release also includes improvements for developers using SwiftUI

v2.1.16

30 Nov 22:54
753e50b
Compare
Choose a tag to compare
  • fixes a layout issue where the search tag suggestions below the search bar were being improperly sized. this issue appears to have been introduced with Xcode 13.1 - the solution is to ensure subviews are being added to the contentView property of UICollectionViewCells rather than directly to the cell's view.