A Floating Action Button just like Google inbox for iOS

Overview

VCFloatingActionButton

A Floating Action Button inspired from Google inbox for iOS.

Using this in your project

  • Import the VCFloatingActionButton to your project
  • Use VCFloatingActionButton.h

Initialize the button and add it as a subview

VCFloatingActionButton *addButton = [[VCFloatingActionButton alloc]initWithFrame:floatFrame normalImage:[UIImage imageNamed:@"plus"] andPressedImage:[UIImage imageNamed:@"cross"] withScrollview:_dummyTable];

Add Images and label names for the actions

addButton.imageArray = @[@"fb-icon",@"twitter-icon",@"google-icon",@"linkedin-icon"];
addButton.labelArray = @[@"Facebook",@"Twitter",@"Google Plus",@"Linked in"];

Add Optional hide while scrolling

addButton.hideWhileScrolling = YES;

Use Delegate to handle actions

-(void) didSelectMenuOptionAtIndex:(NSInteger)row

P.S: This was done in a short time, please feel free to contribute

##License MIT License

Comments
  • Linker error

    Linker error

    I am getting these two error in my project after importing VCFloatingActionButton 1. Undefined symbols for architecture x86_64: "OBJC_CLASS$_VCFloatingActionButton", referenced from: objc-class-ref in CreateServiceWizardViewController.o ld: symbol(s) not found for architecture x86_64 2. clang: error: linker command failed with exit code 1 (use -v to see invocation)

    opened by Ketan-Wadyalkar 6
  • How can I make a new delegate for clicked in VCFloatingActionButton itself.

    How can I make a new delegate for clicked in VCFloatingActionButton itself.

    Hey guys, how can I add another delegate that when i click on VCFloatingActionButton it self? What I wanna do is when I click on VCFloationgActionButton I want present another view controller. thanks in advance.

    opened by afiq90 5
  • Swift doesn't  show nothing after tap the floating Action button

    Swift doesn't show nothing after tap the floating Action button

    this is my code

    let floatFrame = CGRectMake(UIScreen.mainScreen().bounds.size.width - 44 - 20, UIScreen.mainScreen().bounds.size.height - 44 - 20, 44, 44);
    
    let buttonFV: VCFloatingActionButton = VCFloatingActionButton(frame: floatFrame, normalImage: UIImage(named: "plus.png"), andPressedImage: UIImage(named: "cross.png"), withScrollview: self.socialTable)
    
    buttonFV.imageArray = ["fb-icon.png","fb-icon.png","fb-icon.png"]
    
    buttonFV.delegate = self
    buttonFV.hideWhileScrolling = true
    
    self.view.addSubview(buttonFV)
    
    opened by anibalrodriguez 3
  • Floating Animation Doesn't Work In UITableViewController

    Floating Animation Doesn't Work In UITableViewController

    Hey guys, please help me regarding floating animation doesn't working properly in UITableViewController. Below I attached the video and code for better understand :

    Video : https://youtu.be/m-ivFXjXLOM

    Code :

    http://pastebin.com/0q9yyaG2

    Thank you in advance.

    opened by afiq90 3
  • navbar translucency = false making the button disappear

    navbar translucency = false making the button disappear

    awesome job, using it in my app .. but just found something. will making the navigation bar's translucent property to false screw something up with the alignment?

    Right now, the button shows correctly with translucent = true (by default) but not visible when it's false

    P.S. I'm not using auto layout. Just tableview that takes up view.frame and let floatFrame = CGRectMake(UIScreen.mainScreen().bounds.size.width-44-22, UIScreen.mainScreen().bounds.size.height-44-22, 40, 44)

    opened by terrybu 2
  • UIVisualEffectView error?

    UIVisualEffectView error?

    When I click the button to dismiss menu, it showed a message:

    <UIVisualEffectView 0x15ed6de60> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.
    

    Is it a bug? Or is it just intended to be implemented like that?

    opened by Cokile 0
  • App crashes when  hideWhileScrolling set to false

    App crashes when hideWhileScrolling set to false

    Apart from the fact that I somehow can't get the button to display in my swift app, everything crashes (also in your example app) when hideWhileScrolling is set to false or NO. I think that's because you're trying to remove an observer that's not even there. I'll create a pull request with an updated setHideWhileScrolling method.

    opened by bastiRe 0
  • Shows nothing on iOS 14 beta

    Shows nothing on iOS 14 beta

    Hi,

    It's showing nothing when we run the app on iOS 14

    See video for detailed explanation
    https://www.dropbox.com/s/paubgb26lf6h3u6/RPReplay_Final1600084354.mp4?dl=0

    opened by rahulvyas 1
  • Odd behaviour

    Odd behaviour

    Hi, First and foremost excellent component, but i have been witnessing some strange behaviour, but not able to simulate it, at times when i tap on the + button it disappears and nothing appears on screen, no tableview, no blur background, it just disappears and only the parent view on which it has been sub-viewed is visible. But if i rebuild the source by cleaning and building, at time it fixes it self. Not sure i can put my finger on the issue. Any help would be greatly appreciated.

    opened by cpoker87 3
  • I updated my Xcode to Xcode 9 and now I am getting error

    I updated my Xcode to Xcode 9 and now I am getting error

    +0530 floatingButtonTrial[880:33492] *** Assertion failure in -[UIVisualEffectView _addSubview:positioned:relativeTo:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3694.4.18/UIVisualEffectView.m:1464

    screen shot 2017-09-26 at 3 29 12 pm

    opened by dlsuresh 5
  • Fix broken headings in Markdown files

    Fix broken headings in Markdown files

    GitHub changed the way Markdown headings are parsed, so this change fixes it.

    See bryant1410/readmesfix for more information.

    Tackles bryant1410/readmesfix#1

    opened by bryant1410 0
  • How I can change the animation from bottom to top To top to buttom

    How I can change the animation from bottom to top To top to buttom

    Hey All,

    I need to change the animation when user click on the plus button.

    i want the table view cells starts from the top of screen and end then with the end of screen

    Regards,

    opened by muradabujamous 2
Owner
Giridhar
Product Manager @postman. Work repo in hosted Source control. Personal projects and Contributions only over here.
Giridhar
A Google like action sheet for iOS written in Swift.

MaterialActionSheetController Lightweight and totally customizable. Create and present it the way you do with UIAlertController. Screenshots Demo | De

Thanh-Nhon NGUYEN 103 Jun 29, 2022
Custom-action-sheet- - Custom action sheet with swift

Custom-action-sheet- Usage let alertController: UIAlertControllerDimmed = UIAler

Girisankar G 0 Jan 19, 2022
It is a highly configurable iOS library which allows easy styling with built in styles as well as extra header and footer views so that you can make extremely unique alerts and action sheets.

 CFAlertViewController CFAlertViewController is a library that helps you display and customise Alerts, Action Sheets, and Notifications on iPad and i

Crowdfire Inc. 1.1k Dec 18, 2022
A Swift library to provide a bouncy action sheet

Hokusai is a Swift library that provides a bouncy action sheet. It will give the users a fancy experience without taking pains coding the cool animati

Yuta Akizuki 430 Nov 20, 2022
Fully customizable and extensible action sheet controller written in Swift

XLActionController By XMARTLABS. XLActionController is an extensible library to quickly create any custom action sheet controller. Examples The action

xmartlabs 3.3k Dec 31, 2022
Floating indicator, mimicrate to indicator which appear when silent mode turn on / off. Support large texts.

SPIndicator About Mimicrate to indicator which appear when silent mode turn on / off. Availalbe 2 animated presets: done & error. Also support custom

Ivan Vorobei 568 Dec 30, 2022
Action sheet allows including your custom views and buttons.

CustomizableActionSheet Action sheet allows including your custom views and buttons. Installation CocoaPods Edit your Podfile: pod 'CustomizableAction

Ryuta Kibe 191 Nov 26, 2021
ActionBee is a programmable pasteboard action trigger.

ActionBee ActionBee is a programmable pasteboard action trigger. Preview Video It can be used to clean your URL in text. To see code or import this mo

Derek Jones 2 Aug 24, 2022
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way.

StatusAlert is being sponsored by the following tool; please help to support us by takin a look and signing up to a free trial. Dependency managers Fe

Yehor Miroshnychenko 841 Dec 6, 2022
A countdown button for swift

WWCountdownButton A countdown button. 一個倒數計時的按鈕. Installation with Swift Package

William-Weng 0 Dec 22, 2021
An iOS library for SwiftUI to create draggable sheet experiences similar to iOS applications like Maps and Stocks.

An iOS library for SwiftUI to create draggable sheet experiences similar to iOS applications like Maps and Stocks.

Wouter 63 Jan 5, 2023
This is an iOS control for selecting a date using UIDatePicker in an UIAlertController like manner

RMDateSelectionViewController This framework allows you to select a date by presenting an action sheet. In addition, it allows you to add actions arro

Roland Moers 1.2k Dec 13, 2022
This is an iOS control for presenting any UIView in an UIAlertController like manner

RMActionController This framework allows you to present just any view as an action sheet. In addition, it allows you to add actions around the present

Roland Moers 542 Dec 5, 2022
This is an iOS control for selecting something using UIPickerView in an UIAlertController like manner

RMPickerViewController This framework allows you to pick something with a picker presented as an action sheet. In addition, it allows you to add actio

Roland Moers 382 Dec 19, 2022
DropView - A SwiftUI library to display Apple Pencil and Pasteboard-like alerts on iOS.

DropView is a SwiftUI-based library to display alerts inspired by the Apple Pencil and pasteboard stock ones.

Stefano Bertagno 46 Dec 4, 2022
A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil

Drops ?? A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil. Features iOS 10+ Can be used in Sw

Omar Albeik 709 Dec 29, 2022
Create Apple-like alerts & toasts using SwiftUI

AlertToast-SwiftUI Present Apple-like alert & toast in SwiftUI ?? Example ?? Overview Currently in SwiftUI, the only way to inform the user about some

Elai Zuberman 1.1k Dec 29, 2022
Animated alert library like Swarm app.

TKSwarmAlert Animation Tool for Alert like Swarm app. ScreenShot Installation CocoaPods You can use CocoaPods to install TKSwarmAlert by adding it to

Takuya Okamoto 581 Dec 2, 2022
Swift library to manage in app notification in swift language, like WhatsApp, Telegram, Frind, ecc.

InAppNotify - Manage in App notifications During develop of my app Frind, I needed to manage in app notifications like whatsapp or telegram, but i did

Luca Becchetti 438 Nov 20, 2022