All Projects → 52inc → SwiftyGiphy

52inc / SwiftyGiphy

Licence: MIT license
A UI and API layer for Giphy discovery and integration.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to SwiftyGiphy

GiphyImageResultsPreview
Library for GIF results, preview, play, share everything at one place!
Stars: ✭ 28 (-68.89%)
Mutual labels:  giphy, gif, giphy-api
giphygram
🔎 Experimental React application for searching GIF images on GIPHY
Stars: ✭ 23 (-74.44%)
Mutual labels:  giphy, gif, giphy-api
UnityGiphy
Library for using the GiphyAPI in Unity to get and play random Gifs as MP4s
Stars: ✭ 35 (-61.11%)
Mutual labels:  giphy, gif
react-native-giphy
Integrate GIPHY into your React Native project (works with react-native-gifted-chat)
Stars: ✭ 25 (-72.22%)
Mutual labels:  giphy, gif
gifbar
🦄 Find Awesome Gif's right in your Menu Bar
Stars: ✭ 37 (-58.89%)
Mutual labels:  giphy, gif
gifken
JavaScript library that can reverse and split animated GIFs
Stars: ✭ 25 (-72.22%)
Mutual labels:  gif
Tracker
Even the best of apps have their issues
Stars: ✭ 113 (+25.56%)
Mutual labels:  gif
stumpy gif
Write GIF images in pure Crystal
Stars: ✭ 18 (-80%)
Mutual labels:  gif
cuber
优美而强大的网页魔方
Stars: ✭ 32 (-64.44%)
Mutual labels:  gif
tweet2gif
Download videos in tweets as GIFs
Stars: ✭ 22 (-75.56%)
Mutual labels:  gif
congif
convert script(1) output to GIF
Stars: ✭ 52 (-42.22%)
Mutual labels:  gif
Gifflen-Android
Android上合成gif图片.
Stars: ✭ 54 (-40%)
Mutual labels:  gif
mpv-gif-generator
Creates animated gifs using mpv hotkeys
Stars: ✭ 32 (-64.44%)
Mutual labels:  gif
makesweet
Put pictures into animations from the command line.
Stars: ✭ 18 (-80%)
Mutual labels:  gif
videos-to-gif
takes video(s) and associated subtitle files and creates gifs for every line of dialogue
Stars: ✭ 29 (-67.78%)
Mutual labels:  gif
piskel
A simple web-based tool for Spriting and Pixel art.
Stars: ✭ 9,109 (+10021.11%)
Mutual labels:  gif
SSffmpegVideoOperation
This is a library of FFmpeg for android... 📸 🎞 🚑
Stars: ✭ 261 (+190%)
Mutual labels:  gif
video2gif
A batch script for convert video to GIF files by FFmpeg.exe on Windows
Stars: ✭ 48 (-46.67%)
Mutual labels:  gif
image-optimizer
Image optimization using PHP
Stars: ✭ 28 (-68.89%)
Mutual labels:  gif
FunVideo
A series of embeddable theme into video, include animation and voice.
Stars: ✭ 19 (-78.89%)
Mutual labels:  gif

SwiftyGiphy

SwiftyGiphy is a library to allow you to easily integrate Giphy image search into your app.

The library consists of 2 primary components

  1. SwiftyGiphyViewController, which provides a simple UI for search, and callbacks for selected images so you can quickly integrate Giphy in to your app. The controller also supports paging so your users can contiously scroll and see results.

  2. SwiftyGiphyAPI, which provides an API layer to access Giphy. This does not require you to use SwiftyGiphyViewController for your UI, and can be used standalone.



Installing

SwiftyGiphy supports Cocoapods and manual includes.

Cocoapods

pod 'SwiftyGiphy', '~> 1.0'

Manual Include

Add the files in the Library and Assets folder to your project. You'll also need to include the dependencies:

Carthage / Swift Package Manager

Carthage and Swift Package Manager are not currently supported. But, if you'd like to create a pull request with support for either of these I'd be happy to consider including it.

Usage

Setup

You'll need to configure SwiftyGiphy with your Giphy API key. We recommend you do this in your AppDelegate's -didFinishLaunching method.

SwiftyGiphyAPI.shared.apiKey = "my_api_key"

Note: For testing, you can use the Giphy public beta key. However, you MUST change it before releasing your app.

SwiftyGiphyAPI.shared.apiKey = SwiftyGiphyAPI.publicBetaKey

Recommendations

Recommended usage is to present SwiftyGiphyViewController modally in a UINavigationController, with another object (such as the presenting view controller) assigned as the delegate of SwiftyGiphyViewController.

You should dismiss SwiftyGiphyViewController in the delegate methods, when you need to.

IMPORTANT: SwiftyGiphyViewController will not dismiss itself. Similar to UIImagePickerController, you'll need to dismiss it from a delegate callback when you want it to go away.

Components

SwiftyGiphy provides a few useful things for your Giphy integration:

  • SwiftyGiphyViewController (outlined above) gives you an easy to use UI for interacting with Giphy image search.
  • SwiftyGiphyViewControllerDelegate is called by SwiftyGiphyViewController to notify you when the user selects GIFs, or is ready to close the screen.
  • SwiftyGiphyAPI provides easy access to the Giphy API. Currently this supports all of the Giphy API documented here, with the exception of image uploads.
  • SwiftyGiphy Data Models are provided by the API layer so you can interact with real objects instead of dictionaries and arrays.

Questions

If you have questions on how to integrate SwiftyGiphy into your project, feel free to create an issue and we'll try to help the best we can. Please note that we'll only be able to provide assistance for SwiftyGiphy in its 'stock' form, and we won't assist with problems you have due to custom modifications.

Pull requests are encouraged, especially if you feel like assisting in more full implementing the Giphy API layer.

Apps using SwiftyGiphy

If you have an app using SwiftyGiphy, let me know and I'll link to it here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].