Releases: Giphy/giphy-ios-sdk
v2.2.3
v2.2.2
v2.2.1
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
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.
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
- 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
v2.1.20
- 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
- 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
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
- 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 ofUICollectionViewCell
s rather than directly to the cell's view.