All Projects → marcosgriselli → Swipeabletabbarcontroller

marcosgriselli / Swipeabletabbarcontroller

Licence: mit
UITabBarController with swipe interaction between its tabs.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Swipeabletabbarcontroller

Cyltabbarcontroller
[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
Stars: ✭ 6,605 (+618.72%)
Mutual labels:  xcode, cocoapods, tabbar
Progresskit
Progress Views for Cocoa
Stars: ✭ 510 (-44.5%)
Mutual labels:  xcode, cocoapods
React Native Tab View
A cross-platform Tab View component for React Native
Stars: ✭ 4,742 (+416%)
Mutual labels:  swipe, tabbar
Sidemenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less.
Stars: ✭ 5,267 (+473.12%)
Mutual labels:  xcode, cocoapods
Dnspageview
一个纯 Swift 的轻量级、灵活且易于使用的 pageView
Stars: ✭ 461 (-49.84%)
Mutual labels:  xcode, cocoapods
Gedatsu
Gedatsu provide readable format about AutoLayout error console log
Stars: ✭ 464 (-49.51%)
Mutual labels:  xcode, cocoapods
Swiftinstagram
Instagram API client written in Swift
Stars: ✭ 570 (-37.98%)
Mutual labels:  xcode, cocoapods
Jyradarchart
an iOS open source Radar Chart implementation
Stars: ✭ 419 (-54.41%)
Mutual labels:  xcode, cocoapods
Badgehub
A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
Stars: ✭ 592 (-35.58%)
Mutual labels:  xcode, cocoapods
Xcodebenchmark
XcodeBenchmark measures the compilation time of a large codebase on iMac, MacBook, and Mac Pro
Stars: ✭ 736 (-19.91%)
Mutual labels:  xcode, cocoapods
Font Awesome Swift
Font Awesome swift library for iOS.
Stars: ✭ 743 (-19.15%)
Mutual labels:  xcode, cocoapods
Uitextfield Navigation
🏄‍♂️ UITextField-Navigation makes it easier to navigate between UITextFields and UITextViews
Stars: ✭ 436 (-52.56%)
Mutual labels:  xcode, cocoapods
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+351.8%)
Mutual labels:  xcode, cocoapods
Ttsegmentedcontrol
An elegant, animated and customizable segmented control for iOS created by Tapptitude
Stars: ✭ 471 (-48.75%)
Mutual labels:  xcode, cocoapods
Agimagepickercontroller
Stars: ✭ 424 (-53.86%)
Mutual labels:  xcode, cocoapods
Xcake
🍰 Describe Xcode projects in a human readable format and (re)generate one on demand.
Stars: ✭ 549 (-40.26%)
Mutual labels:  xcode, cocoapods
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-57.45%)
Mutual labels:  xcode, cocoapods
Gradientcircularprogress
Customizable progress indicator library in Swift
Stars: ✭ 407 (-55.71%)
Mutual labels:  xcode, cocoapods
Monkeydev
CaptainHook Tweak、Logos Tweak and Command-line Tool、Patch iOS Apps, Without Jailbreak.
Stars: ✭ 5,492 (+497.61%)
Mutual labels:  xcode, cocoapods
Parallaxheader
Simple way to add parallax header to UIScrollView/UITableView written in Swift.
Stars: ✭ 808 (-12.08%)
Mutual labels:  xcode, cocoapods

SwipeableTabBarController

Version iOS 8.0+ Swift 4.2 Cartage License codebeat badge

🌟 Features

  • [x] Zero setup
  • [x] Different animations
  • [x] Enable/Disable interactions easily
  • [x] Fluid gestures

📲 Installation

Using CocoaPods

Edit your Podfile and specify the dependency:

pod 'SwipeableTabBarController'

Using Carthage

Edit your Cartfile and specify the dependency:

github "marcosgriselli/SwipeableTabBarController"

Manual

Drop the classes inside of SwipeableTabBarController/Classes into your project.

👩‍💻 How to use

Setup

If you don't need subclassing UITabBarController just set the UITabBarController on the Storyboard to be of type SwipeableTabBarController.

Otherwise, make a subclass of SwipeableTabBarController.

import SwipeableTabBarController

class TabBarController: SwipeableTabBarController {
    // Do all your subclassing as a regular UITabBarController.
}

Animations

SwipeableTabBarController supports 3 different types of animations out of the box. Setting the desired animation is easy. On your SwipeableTabBarController subclass just do:

swipeAnimatedTransitioning?.animationType = SwipeAnimationType.sideBySide

If you are supporting just one type of animation call it on viewDidLoad() otherwise call it as you need to change the desired animation.

Side by Side (default)

The default animation is SwipeAnimationType.sideBySide where the newly selected tab will move in at the same speed the previous one moves out.

Overlap

SwipeAnimationType.overlap the newly selected tab will move in to take the central place on top of the previous one which will hold it's position.

Push

SwipeAnimationType.push follows iOS default push animation where the top view moves away while the bottom one slightly moves behind. In this case, the top view will be the previously selected tab view.

Enable Cycling

SwipeableTabBarController supports cycling between the first and last tab like a carousel. Simply set isCyclingEnabled to true.

Default value is false

isCyclingEnabled = true

Minimum/Maximum number of touches

You can set both the minimum and the maximum number of touches needed to handle the swipe gesture. Simply set minimumNumberOfTouches or maximumNumberOfTouches property.

Default value is 1

minimumNumberOfTouches = 2

Default value is Int.max

maximumNumberOfTouches = 2

Disable Interaction

Support for disabling/enabling the interactor, this can be used on a controller that uses horizontal scrollView or a Map (in the example).

Default value is true

isSwipeEnabled = false

❤️ Contributing

This is an open source project, so feel free to contribute. How?

  • Open an issue.
  • Send feedback via twitter.
  • Propose your own fixes, suggestions and open a pull request with the changes.

Contributors

👨‍💻 Author

Marcos Griselli | @marcosgriselli

Twitter Follow

GitHub Follow

🛡 License

MIT License

Copyright (c) 2018 Marcos Griselli

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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].