All Projects → jonathantribouharet → Jthamburgerbutton

jonathantribouharet / Jthamburgerbutton

Licence: mit
An animated hamburger button for iOS.

Projects that are alternatives of or similar to Jthamburgerbutton

UIViewAnimationsHandbook
This project takes up all the available UIView animations in Swift4. Each type animation added with an example and expected result in the form of GIF. A glimpse at README would give you a better idea. Do give a star if you like the work.
Stars: ✭ 43 (-87.99%)
Mutual labels:  ios-animation
Kinetic
A flexible tweening library for iOS in Swift similar to GSAP's TweenMax.
Stars: ✭ 54 (-84.92%)
Mutual labels:  ios-animation
Mevfloatingbutton
An iOS drop-in UITableView, UICollectionView and UIScrollView superclass category for showing a customizable floating button on top of it.
Stars: ✭ 301 (-15.92%)
Mutual labels:  ios-animation
SwiftUI-DesignCode
 SwiftUI-DesignCode is some examples in the process of learning swiftUI 2.0
Stars: ✭ 185 (-48.32%)
Mutual labels:  ios-animation
IGStoryButtonKit
IGStoryButtonKit provides an easy-to-use button with rich animation and multiple way inspired by instagram story/stories.
Stars: ✭ 31 (-91.34%)
Mutual labels:  ios-animation
Gemini
Gemini is rich scroll based animation framework for iOS, written in Swift.
Stars: ✭ 2,965 (+728.21%)
Mutual labels:  ios-animation
Nativepopup
Clone of Apple iOS App's feedback popup, and easily customizable.
Stars: ✭ 247 (-31.01%)
Mutual labels:  ios-animation
React Native Dating App
Dating app - Exponent and React Native
Stars: ✭ 352 (-1.68%)
Mutual labels:  ios-animation
AnimateLabel
Label extension for iOS with ablitity to automatically keep switching between a series of strings using various kinds of animations.
Stars: ✭ 73 (-79.61%)
Mutual labels:  ios-animation
Kdintroview
Stars: ✭ 300 (-16.2%)
Mutual labels:  ios-animation
circularProgressBar
This repo contains a demo app for circularProgressBar.swift
Stars: ✭ 17 (-95.25%)
Mutual labels:  ios-animation
react-native-swipe-cards-interaction
React native swipe cards interaction
Stars: ✭ 142 (-60.34%)
Mutual labels:  ios-animation
Iosproject
IOS综合项目,完善的框架,路由模块化设计,集成科大讯飞SDK方便iOS基本输入控件实现语音辅助输入,UI效果参照京东APP,JS与OC交互,ionic跨平台开发,MQTT 协议,即时通讯协议,视屏播放,跑马灯效果 仿美团地图定位,城市收索, 友盟分享,基础动画 增加FCUIID帮助类,引导页功能模块,照片上传 ,UIView自定义导航栏,文件下载,Masonry 案例,fmdb,数据库,sqlite,百度地图,二维码,照片上传,照片上传有进度,列表倒计时,H5和原生交互,自定义各种弹框,常见表单类型,人脸识别,列表加载图片,列表拖拽,日历操作,导航条渐变,核心动画,动画特效等等
Stars: ✭ 291 (-18.72%)
Mutual labels:  ios-animation
iOSProjects
It's project that contains different applications developed with Swift 5.7 👨‍💻👩🏼‍💻🧑🏿‍💻
Stars: ✭ 122 (-65.92%)
Mutual labels:  ios-animation
Hotels
酒店预订App
Stars: ✭ 323 (-9.78%)
Mutual labels:  ios-animation
particle-animations
Animate your iOS app with particle systems
Stars: ✭ 14 (-96.09%)
Mutual labels:  ios-animation
Flawless Ios
Awesome iOS guides from the community, shared on Flawless iOS Medium blog 👉
Stars: ✭ 260 (-27.37%)
Mutual labels:  ios-animation
Mevhorizontalcontacts
An iOS UICollectionViewLayout subclass to show a list of contacts with configurable expandable items.
Stars: ✭ 358 (+0%)
Mutual labels:  ios-animation
Marqueelabel
Charles Powell
Stars: ✭ 3,741 (+944.97%)
Mutual labels:  ios-animation
Somo
Somo is a iOS Skeleton-style animation library that's simple enough,and in objective-c
Stars: ✭ 299 (-16.48%)
Mutual labels:  ios-animation

JTHamburgerButton

CI Status Version License Platform

An animated hamburger button for iOS.

Installation

With CocoaPods, add this line to your Podfile.

pod 'JTHamburgerButton', '~> 1.0'

Screenshots

Example

Usage

Basic usage

#import <UIKit/UIKit.h>

#import <JTHamburgerButton.h>

@interface ViewController : UIViewController

@property (weak, nonatomic) IBOutlet JTHamburgerButton *button;

@end
#import "ViewController.h"

@implementation ViewController

- (IBAction)didBackButtonTouch:(JTHamburgerButton *)sender
{
    if(sender.currentMode == JTHamburgerButtonModeHamburger){
        [sender setCurrentModeWithAnimation:JTHamburgerButtonModeArrow];
    }
    else{
        [sender setCurrentModeWithAnimation:JTHamburgerButtonModeHamburger];
    }
}

- (IBAction)didCloseButtonTouch:(JTHamburgerButton *)sender
{
    if(sender.currentMode == JTHamburgerButtonModeHamburger){
        [sender setCurrentModeWithAnimation:JTHamburgerButtonModeCross];
    }
    else{
        [sender setCurrentModeWithAnimation:JTHamburgerButtonModeHamburger];
    }
}

@end

The method setCurrentModeWithAnimation animates the transition from one mode to another. There is also setCurrentMode which changes the view without transition.

There are three modes:

  • JTHamburgerButtonModeHamburger
  • JTHamburgerButtonModeArrow
  • JTHamburgerButtonModeCross

Customize the design

  • lineHeight
  • lineWidth
  • lineSpacing
  • lineColor
  • animationDuration

After the change of one of this properties you have to call updateAppearance to update the view.

Requirements

  • iOS 7 or higher
  • Automatic Reference Counting (ARC)

Author

License

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