All Projects → jonathantribouharet → Jtmaterialtransition

jonathantribouharet / Jtmaterialtransition

Licence: mit
An iOS transition for controllers based on material design.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Jtmaterialtransition

Matter
Material Design Components in Pure CSS. Materializing HTML at just one class per component 🍰
Stars: ✭ 888 (-8.07%)
Mutual labels:  material-design, material
React Saas Template
🌊 Template for building an SaaS / admin website using React + Material-UI
Stars: ✭ 942 (-2.48%)
Mutual labels:  material-design, material
Mdl Skeleton
Material Design skeleton with ssr-engine
Stars: ✭ 17 (-98.24%)
Mutual labels:  material-design, material
Materialize Sass
Materializecss rubygem for Rails Asset Pipeline / Sprockets
Stars: ✭ 785 (-18.74%)
Mutual labels:  material-design, material
Material Components
Documentation and policies for Material Components (all platforms)
Stars: ✭ 872 (-9.73%)
Mutual labels:  material-design, material
Depth
Add some Depth to your fragments
Stars: ✭ 789 (-18.32%)
Mutual labels:  material, transition
Breeze
A Material Design game launcher for Windows
Stars: ✭ 22 (-97.72%)
Mutual labels:  material-design, material
Textfieldboxes
Material Design text field that comes in a box, based on (OLD) Google Material Design guidelines.
Stars: ✭ 760 (-21.33%)
Mutual labels:  material-design, material
Awesomebar
Just beautiful
Stars: ✭ 870 (-9.94%)
Mutual labels:  material-design, material
React Native Material Textfield
Material textfield
Stars: ✭ 852 (-11.8%)
Mutual labels:  material-design, material
Slidetoact
A simple 'Slide to Unlock' Material widget for Android, written in Kotlin 📱🎨🦄
Stars: ✭ 783 (-18.94%)
Mutual labels:  material-design, material
Material Design Lite
Material Design Components in HTML/CSS/JS
Stars: ✭ 31,931 (+3205.49%)
Mutual labels:  material-design, material
Material Remixer Android
Remixer for Android. Live adjustment of app variables.
Stars: ✭ 782 (-19.05%)
Mutual labels:  material-design, material
Demo Progressive Web App
🎉 A demo for progressive web application with features like offline, push notifications, background sync etc,
Stars: ✭ 798 (-17.39%)
Mutual labels:  material-design, material
Materialscrollbar
An Android library that brings the Material Design 5.1 sidebar to pre-5.1 devices.
Stars: ✭ 761 (-21.22%)
Mutual labels:  material-design, material
Materialdesignsamples
Material Design 系列控件samples,讲了Material Design 系列新控件的使用方法和一些场景示例,使用详情请看对应博客,持续更新中...
Stars: ✭ 900 (-6.83%)
Mutual labels:  material-design, material
React Native Material Dropdown
Material dropdown with consistent behaviour on iOS and Android
Stars: ✭ 661 (-31.57%)
Mutual labels:  material-design, material
Wanandroid
🐔🏀【停止维护,已使用Jetpack+Mvvm重构】根据鸿神提供的WanAndroid开放Api来制作的产品级玩安卓App,采用Kotlin语言,基于Material Design+AndroidX +MVP+RxJava+Retrofit等框架开发,注释超详细,方便大家练手
Stars: ✭ 674 (-30.23%)
Mutual labels:  material-design, material
Mdwechat
一个能让微信 Material Design 化的 Xposed 模块
Stars: ✭ 849 (-12.11%)
Mutual labels:  material-design, material
Smelte
UI framework with material components built with Svelte and Tailwind CSS
Stars: ✭ 871 (-9.83%)
Mutual labels:  material-design, material

JTMaterialTransition

CI Status Version License Platform

An iOS transition for controllers based on material design.

Installation

With CocoaPods, add this line to your Podfile.

pod 'JTMaterialTransition', '~> 2.0'

Screenshots

Example

Usage

Basic usage

import UIKit
import JTMaterialTransition

class ViewController: UIViewController {

    weak var presentControllerButton: UIButton?
    var transition: JTMaterialTransition?

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.transition = JTMaterialTransition(animatedView: self.presentControllerButton)
    }
    
    func didPresentControllerButtonTouch () {
        let controller = SecondViewController()
        
        controller.modalPresentationStyle = .custom
        controller.transitioningDelegate = self.transition
        
        self.present(controller, animated: true, completion: nil)
    }

}

Notes

The animatedView is not directly used, a new view is created based on the frame, backgroundColor properties for the animation. If you don't want to provide a view, you have to set startFrame and startBackgroundColor properties and call init instead of initWithAnimatedView:.

startFrame must be the coordinates relative to the window:

var startFrame = animatedView.superview?.convert(animatedView.frame, to: nil)

Warning

The controller presented must have a backgroundColor else the effect can be a little strange. If you use a UINavigationController or another container don't forget to set the backgroundColor with controllerPresented.view.backgroundColor = UIColor.yourColor.

Requirements

  • iOS 8.0 or higher
  • Swift 4.2

Author

License

JTMaterialTransition is released under the MIT license. See the LICENSE file for more info.

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].