GithubHelp home page GithubHelp logo

ozzie00 / iftttlaunchimage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ifttt/iftttlaunchimage

0.0 3.0 0.0 7.44 MB

Put your asset catalog launch images to work for you.

License: MIT License

Objective-C 80.13% Ruby 1.86% C 2.05% Shell 15.96%

iftttlaunchimage's Introduction

IFTTTLaunchImage

Build Status Coverage Status

Asset Catalogs in Xcode 5+ are pretty neat. You can keep all of your app's assets in one place, you can see at a glance which image scales you're using, and you can even use asset catalogs for your app's icon and launch image.

When your app first launches, you'll probably have some loading or setup to do before you can display your initial user interface. Instead of showing your user a broken or half-loaded interface, why not animate a smooth transition from your app's launch image to your fully loaded user interface? Unlike normal images in your asset catalog, unfortunately it is not obvious how to reach into your asset catalog to programmatically access the correct launch image for the user's current device.

IFTTTLaunchImage is a set of classes that simplify working with launch images in your asset catalog as well as nib-based launch screens.

What's in the Box

  • UIImage+IFTTTLaunchImage and UIDevice+IFTTTLaunchImage are simple categories that make it easy to access the correct launch image for the user's current device.
  • IFTTTSplashView is a view containing your launch image or launch screen that you can display when your app launches. When your app has finished launching and loading its initial interface, the splash view can be dismissed using one of several nifty built-in animations.

IFTTTSplashView also has full support for UINib-based Launch Screens as well as splash screens that display a custom UIView. Check out IFTTTSplashView.h for more details.

Examples

ExampleImage is an app that animates from its launch image to its initial interface.

ExampleLaunchScreen is an app that animates from its nib-based launch screen to its initial interface.

To try the example projects:

pod try IFTTTLaunchImage

Or just open IFTTTLaunchImage.xcworkspace or open IFTTTLaunchScreen.xcworkspace.

Here it is in action in the ExampleImage app, using the built-in animation IFTTTSplashAnimationDrop:

IFTTTLaunchImage

Usage

To run the example project, clone the repo, and run pod install from the Example directory.

Installation

IFTTTLaunchImage is available through CocoaPods. To install it, add the following line to your Podfile:

pod "IFTTTLaunchImage"

Author

Jonathan Hersh

License

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

Copyright © 2015 IFTTT Inc.

iftttlaunchimage's People

Contributors

jhersh avatar lauraskelton avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.