All Projects → manuelescrig → Mevfloatingbutton

manuelescrig / Mevfloatingbutton

Licence: mit
An iOS drop-in UITableView, UICollectionView and UIScrollView superclass category for showing a customizable floating button on top of it.

Projects that are alternatives of or similar to Mevfloatingbutton

Pinterestsegment
A Pinterest-like segment control with masking animation.
Stars: ✭ 560 (+86.05%)
Mutual labels:  cocoapods, ios-animation
Sizeslidebutton
A fun Swift UIControl for picking a size
Stars: ✭ 46 (-84.72%)
Mutual labels:  cocoapods, ios-animation
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (+44.19%)
Mutual labels:  cocoapods, ios-animation
Mevhorizontalcontacts
An iOS UICollectionViewLayout subclass to show a list of contacts with configurable expandable items.
Stars: ✭ 358 (+18.94%)
Mutual labels:  cocoapods, ios-animation
Nvactivityindicatorview
A collection of awesome loading animations
Stars: ✭ 10,031 (+3232.56%)
Mutual labels:  cocoapods, ios-animation
Loadingshimmer
An easy way to add a shimmering effect to any view with just one line of code. It is useful as an unobtrusive loading indicator.
Stars: ✭ 1,180 (+292.03%)
Mutual labels:  cocoapods, ios-animation
Tkswitchercollection
An animation switch collection
Stars: ✭ 877 (+191.36%)
Mutual labels:  cocoapods, ios-animation
Rhplaceholder
Show pleasant loading view for your users 😍
Stars: ✭ 238 (-20.93%)
Mutual labels:  cocoapods, ios-animation
Tkdotsegment
TKDotSegment is a segment with dot animation
Stars: ✭ 103 (-65.78%)
Mutual labels:  cocoapods, ios-animation
Tkrubberindicator
A rubber animation pagecontrol
Stars: ✭ 1,337 (+344.19%)
Mutual labels:  cocoapods, ios-animation
Wobbly
(Animate CSS) animations for iOS. An easy to use library of iOS animations. As easy to use as an easy thing.
Stars: ✭ 150 (-50.17%)
Mutual labels:  cocoapods, ios-animation
Gemini
Gemini is rich scroll based animation framework for iOS, written in Swift.
Stars: ✭ 2,965 (+885.05%)
Mutual labels:  cocoapods, ios-animation
Imageloaderswift
A lightweight and fast image loader for iOS written in Swift.
Stars: ✭ 290 (-3.65%)
Mutual labels:  cocoapods
Web3.swift
A pure swift Ethereum Web3 library
Stars: ✭ 295 (-1.99%)
Mutual labels:  cocoapods
Swiftprogresshud
📦 SwiftProgressHUD is a user-friendly pure swift HUD. 支持Cocoapods 及 Carthage
Stars: ✭ 290 (-3.65%)
Mutual labels:  cocoapods
Realreachability
We need to observe the REAL reachability of network. That's what RealReachability do.
Stars: ✭ 3,042 (+910.63%)
Mutual labels:  cocoapods
Ismessages
This is simple extension for presenting system-wide notifications from top/bottom of device screen.
Stars: ✭ 299 (-0.66%)
Mutual labels:  cocoapods
Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (-2.33%)
Mutual labels:  cocoapods
Jgprogresshud
An elegant and simple progress HUD for iOS and tvOS, compatible with Swift and ObjC.
Stars: ✭ 3,110 (+933.22%)
Mutual labels:  cocoapods
Manuallayout
✂ Easy to use and flexible library for manually laying out views and layers for iOS and tvOS. Supports AsyncDisplayKit.
Stars: ✭ 286 (-4.98%)
Mutual labels:  cocoapods

MEVFloatingButton

An iOS drop-in UITableView, UICollectionView, UIScrollView superclass category for showing a customizable floating button on top of it.

BuddyBuild Version License Platform Language

MEVFloatingButton

Features

  • Multiple animation types.
  • Different display modes.
  • Different screen positions.
  • Customizable button icon.
  • Multiple delegate methods.

Demo

Demo App

Usage

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

Requirements

Requires iOS SDK version > 8.0

Installation


CocoaPods

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

pod 'MEVFloatingButton'
Manual

Simply include UIScrollView+FloatingButton.h and UIScrollView+FloatingButton.m from /Pod/Classes/ folder in your App’s Xcode project.

How to use


Step 1
#import "UIScrollView+FloatingButton.h"
Step 2

Add datasource and delegate methods.

@interface ViewController () <MEVFloatingButtonDelegate>
#pragma mark - MEScrollToTopDelegate Methods

- (void)floatingButton:(UIScrollView *)scrollView didTapButton:(UIButton *)button;
- (void)floatingButtonWillAppear:(UIScrollView *)scrollView;
- (void)floatingButtonDidAppear:(UIScrollView *)scrollView;
- (void)floatingButtonWillDisappear:(UIScrollView *)scrollView;
- (void)floatingButtonDidDisappear:(UIScrollView *)scrollView;
Step 3

Create a MEVFloatingButtonobject.

MEVFloatingButton *button = [[MEVFloatingButton alloc] init];
button.animationType = MEVFloatingButtonAnimationFromBottom;
button.displayMode = MEVFloatingButtonDisplayModeWhenScrolling;
button.position = MEVFloatingButtonPositionBottomCenter;
button.image = [UIImage imageNamed:@"Icon0"];
button.imageColor = [UIColor groupTableViewBackgroundColor];
button.backgroundColor = [UIColor darkGrayColor];
button.outlineColor = [UIColor darkGrayColor];
button.outlineWidth = 0.0f;
button.imagePadding = 20.0f;
button.horizontalOffset = 20.0f;
button.verticalOffset = -30.0f;
button.rounded = YES;
button.hideWhenScrollToTop = YES;

Set the object to your UIScrollView/UITableView/UICollectionView.

[self.tableView setFloatingButtonView:button];

Set the delegate.

[self.tableView setFloatingButtonDelegate:self]

Sample Project

For more info check the Examples project. Everything is there.

Change Log

See Changelog.md

Author

Manuel Escrig Ventura, @manuelescrig

Credits

Icons made by Elegant Themes from www.flaticon.com

License

MEVFloatingButton is available under the MIT license. See License.md

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