iOS client for Giphy written in Swift with ReactiveCocoa

Overview

Giraffe

iOS client for Giphy (http://giphy.com) written in Swift with ReactiveCocoa

image

Requirements

  • iOS 10.0 Beta
  • Xcode 8 Beta 2
  • Swift 2.3
  • Carthage

Why Swift 2.3 ?

Swift 2.3 was chosen for initial version of the app, because at the time, not many open-source libraries were migrated to Swift 3. However, author's intention was to use latest tools and migrate 3rd party frameworks by himself (when needed) with less effort than same migration from Swift 2.2 to Swift 3 might have been required.

The following quote from Swift 3 and Xcode 8 blogpost explains Swift 2.3 support in Xcode 8.

Swift 3 is the primary development language supported within Xcode 8 so there are a couple notes to consider if you chose to continue using Swift 2.3. First, Swift 2.3 and Swift 3 are not binary compatible so your app's entire code base needs to pick one version of Swift. Both versions are fully supported by the compiler, SDKs, and debugger, but other features of the IDE may not work with Swift 2.3. For instance, Playgrounds in Xcode only work with Swift 3, and notably the Swift Playgrounds app for iPad also uses Swift 3. Xcode project templates all use Swift 3, and all documentation is presented in a format appropriate for Swift 3.

Eventually, author admits that using Swift 2.3 slowed down the development, because:

  • Nuke required migration to Swift 2.3
  • ReactiveCocoa's Swift 2.3 branch was under development at the time by contributors (now merged in v4.2.2 release)
  • Setup with Carthage took more time to figure out
  • Xcode 8 (Beta) & Xcode 7, both had difficulties working simultaneously

Setup

As mentioned above, the current version of the app is written in Swift 2.3 Xcode 8 (both are in beta now). Because of this, setup takes several steps (not just few).

Open Terminal and change the default xcodebuild to Xcode 8 beta

$ sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer

cd to the folder you've cloned the repo to

$ cd /Path/To/Repo/Giraffe/

Bootstrap but don't build

$ carthage bootstrap --no-build

With Swift 2.3's toolchain, build 3rd party libraries

$ TOOLCHAINS=com.apple.dt.toolchain.Swift_2_3 carthage build --platform iOS

In order to build & run the app on a device, set the Development Team for the following targets:

  • GiraffeKit framework
  • Giraffe-iOS

What

Architecture:

  • MVVM
  • FRP via ReactiveCocoa
  • iOS Dynamic Framework with common code
  • Protocol Extensions, Generics, Closures, etc..
  • Migrate to Swift 3
  • Pagination for search results
  • Refactoring ViewModels DRY
  • Error handling (SignalProducer in particular)
  • Retry request after failure
  • Unit-tests
  • Reactive object mapping
  • Document the GiraffeKit framework's code
  • WebP support

Features:

  • Trending list
  • Search GIF by term
  • Denote trending GIFs in search results
  • Filter to only family friendly GIFs
  • Pull-to-refresh
  • Download still images prior to downloading animated ones
  • GIF preview via Peek and Pop
  • Sharing
  • Play/Stop animation control
  • SiriKit for searching GIFs?

Credits

The app's look and feel wouldn't be possible without these guys:

License

Giraffe is available under the MIT license. See the LICENSE file for more info.

You might also like...
Mastodon and Twitter client for iOS, iPadOS & macOS
Mastodon and Twitter client for iOS, iPadOS & macOS

Note: Mamoot! is under heavy development and is obviously far from complete at this moment. We're currently looking for more people to work with us, s

iOS Trakt Client - Keep track of your favorite TV shows and movies on your iPhone. (Under development)

CouchTracker Keep track of your favorite movies and tv shows on your iPhone Setup for development You will need Xcode 11.2.1 Swift 5.1.2 Run the follo

An unofficial iOS client for Konachan.net
An unofficial iOS client for Konachan.net

An unofficial iOS client for Konachan.net

An alternative Tumblr client for iOS

BlogQuest An alternative Tumblr client for iOS. First prize winner, 2014 Tumblr Hack Day. Kinda like Facebook Paper but for Tumblr. We meant to finish

A Simplenote client for iOS.

Simplenote for iOS A Simplenote client for iOS. Learn more about Simplenote at Simplenote.com. Build Instructions Download Xcode At the moment Simplen

An iOS client for connecting to Linux Mint's Warpinator application

warpinator-iOS This is an iOS application for connecting iOS devices (and hopefully, in the future, macOs computers) to the Linux Mint Warpinator file

A small SwiftUI based chat client for IRC, using swift-nio-irc
A small SwiftUI based chat client for IRC, using swift-nio-irc

NeoIRC A simple Internet Relay Chat client implemented using SwiftNIO and SwiftUI. Inspired by: For maximum NIO someone (I’m tempted) should adopt NIO

A swift client library for GoTrue.

gotrue-swift Swift client for the GoTrue API. Using The usage should be the same as gotrue-js except: Oauth2: signIn with oauth2 provider only return

A swift client library for GoTrue.

gotrue-swift Swift client for the GoTrue API. Using The usage should be the same as gotrue-js except: Oauth2: signIn with oauth2 provider only return

Owner
Yevhen Dubinin
iOS Developer, Swiftwalker
Yevhen Dubinin
Swift iPhone and iPad Client for Polls API, using Hyperdrive API client

Polls Client This is a Swift iPhone and iPad client for the Polls API - a simple application allowing users to view polls and vote in them. Polls is a

Apiary 34 Jul 15, 2022
Seaglass is a truly native macOS client for Matrix. It is written in Swift and uses the Cocoa user interface framework.

Seaglass is a truly native macOS client for Matrix. It is written in Swift and uses the Cocoa user interface framework.

null 1 Jan 17, 2022
A xkcd client written in SwiftUI.

xkcd A xkcd client written in SwiftUI. Architechture: Tried to use MVVM but with CoreData... If you know, you know. Features: Supports Dark/Light mode

Sina Rabiei 10 Oct 21, 2022
Tutorial GraphQL + Node Express + MySQL, and sample for Android / iOS client

GraphQL-tutorial Tutorial for GraphQL + Node Express + MySQL, and sample for Android / iOS client Blog NeoRoman's GraphQL-tutorial (Korean) Materials

Henry Kim 4 Oct 20, 2022
Native Jellyfin Client for iOS and tvOS

Swiftfin Swiftfin is a modern client for the Jellyfin media server. Redesigned in Swift to maximize direct play with the power of VLC and look native

Jellyfin 1.1k Jan 6, 2023
Basic Unsplash client for iOS made with SwiftUI (beta).

PapersSwiftUI Basic Unsplash client for iOS made with SwiftUI (beta). Note SwiftUI is still in beta and I'm also still learning how it works. To-Do: P

Don 19 Dec 17, 2022
💥 a modern xkcd iOS client

XKCDY / app This is the source code of the XKCDY app. I built this app primarily as a way to learn Swift and SwiftUI. Because I was learning as I buil

null 32 Oct 30, 2022
Client library for making in-app purchases on iOS and macOS Automattic apps

MobilePayKit Client library for making in-app purchases on iOS and macOS Automattic apps Introduction MobilePayKit is a client library for making in-a

Automattic 8 Oct 20, 2022
The alternative last.fm client for iOS made with SwiftUI

first.fm - The alternative last.fm client for iOS (it's actually not available on the App Store... yet) Features Your profile (top artists, tracks and

Stanislas 22 Aug 22, 2022
Tanukis-Stash - Open source e621 client for iOS built with SwiftUI

The Tanuki's Stash The worlds first e621 client for iOS, iPadOS, and macOS built

Jay 3 Jul 29, 2022