Giter Club home page Giter Club logo

qzcirclesegue's Introduction

#QZCircleSegue

QZCircleSegue is written in Swift and it is a beatiful transition between circular-shapped buttons and your ViewController. With just a few super-simple steps you can setup your settings according to your app.

What it does?

Example

##Requirements and Dependencies

  • Swift Language (>= 1.2)
  • iOS >= 8.0

##Installation

####Manual install:

  • Copy QZCircleSegue.swift into your project.

##Usage

Setting everything up on your Storyboard

Pre. Have a Storyboard file with buttons and controllers

  1. Create an Action Segue from your UIButton to your View Controller. Set it as a 'Present Modally' segue and set an Identifier(if needed).

  1. On your Origin View Controller (where your buttons are placed in) add the following method.

     	@IBAction func unwindToMainViewController (sender: UIStoryboardSegue){
     		self.dismissViewControllerAnimated(true, completion: nil)
     	}
    
  2. Connect a Back element to the Exit Segue as shown in the image.

Setting everything up on your origin's Controller

Once everything is configured on your Storyboard file, you'll need to setup your QZCircleSegue instance in your origin's Controller.

  1. Create and configure a QZCircleSegue instance to fit your settings.

     	...
     	var transition = QZCircleSegue()
     	...
     	override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
     		let destinationViewController = segue.destinationViewController as! NewViewController
     		self.transition.animationChild = buttonOne
     		self.transition.animationColor = UIColor.redColor()
     		self.transition.fromViewController = self
     		self.transition.toViewController = destinationViewController
     		destinationViewController.transitioningDelegate = transition
     	}
    
  2. Optional Check the DEMO APP to see how to configure different settings for different buttons.

License

Licensed under MIT. A copy can be found inside this folder.

qzcirclesegue's People

Contributors

alextarrago avatar dribbadev avatar

Watchers

 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.