Releases: Giphy/giphy-ios-sdk
v2.0.3
v2.0.2
- fix so that multiple calls to
configure
and / orsetAPIKey
does not result in leaked queues #81 - addresses #90 (suggestion cell bug present in iOS 14)
- enable ability to hide search suggestion bar: #85
public class YourTheme: GPHTheme {
public override init() {
super.init()
self.type = .light
}
public override var showSuggestionsBar: Bool {
return false
}
}
giphyViewController.theme = YourTheme()
- fix for #87: recents in
GiphyGridController
- fix issues where certain combinations of scrolling and toggling 'search initiation' cause weird ui states
v2.0.1
v2.0
new designs + new features + bugfixes
tab bar
- content type selection is moved from right below the search bar to the bottom of the screen
- content types are now represented as icons
- this structure is more consistent with many popular GIPHY integrations including Instagram and Snapchat.
suggestions bar
- we repurposed the bar below the search bar to surface search suggestions, including trending GIPHY searches, channel search results, and recent searches.
misc
- removes
GPHLayoutType
as the.carousel
layout is no longer supported. to enable a horizontal carousel experience, see the grid docs. - fix Objective-C interface for
GPHTheme
/GPHThemeType
(noted in issue #83) - hopeful fix for crash noted in issue #81
- enables
more by @user
long press behavior fromGPHMediaView
v1.3.0
v1.2.9
v1.2.8
-
Blur theme design improvements
-
Refactor which makes
GPHTheme
(previously an enum) into an object type.
GPHThemeType
, is now an enum which represents the default template theme cases (.light
, .dark
, .lightBlur
, .darkBlur
)
Set the theme on your GiphyGridController
or GiphyViewController
like so
giphyViewController.theme = GPHTheme(type: .lightBlur)
You can also now create your own GPHTheme
subclass and override various properties, including fonts and colors.
-
Documentation updates, including table of contents
-
Includes the cell as a parameter to the
didSelectMedia
method of theGPHGridDelegate
protocol, for use with theGiphyGridController
This is to support the use case where it makes sense to briefly display a “copied” message on top of the cell for the GIF selected by the user in a keyboard extension context. It may make sense to temporarily disable user interaction of the grid for the duration of the animation.
extension ViewController: GPHGridDelegate {
func contentDidUpdate(resultCount: Int) {
print("content did update")
}
func didSelectMedia(media: GPHMedia, cell: UICollectionViewCell) {
print("did select media")
}
}
v1.2.7
v1.2.6
- The Blur: two new additional themes (
GPHTheme
):.lightBlur
and.darkBlur
(checkout the new AR example app which showcases these settings) - a new
GiphyViewController
setting calledstickerColumnCount
, which lets you achieve two, three, or four columns for stickers or text in the grid. We recommend setting this value to be three or four when using the blur theme. - supports past Xcode versions (all the way back to 11.1) in addition to the latest Xcode 11.4
- bug fix where the
.recents
tab wasn't properly disappearing when tapping into the search bar