A Floating Action Button just like Google inbox for iOS

Last update: May 16, 2022

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

GitHub

https://github.com/giridharvc7/VCFloatingActionButton
Comments
  • 1. 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)

    Reviewed by Ketan-Wadyalkar at 2016-06-03 11:05
  • 2. 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.

    Reviewed by afiq90 at 2015-12-17 09:58
  • 3. 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)
    
    Reviewed by anibalrodriguez at 2016-06-29 16:25
  • 4. 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.

    Reviewed by afiq90 at 2015-12-06 06:51
  • 5. 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)

    Reviewed by terrybu at 2015-06-17 16:12
  • 6. 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?

    Reviewed by Cokile at 2016-05-14 13:05
  • 7. 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.

    Reviewed by bastiRe at 2015-06-27 07:59
  • 8. 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

    Reviewed by rahulvyas at 2020-09-14 12:16
  • 9. 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.

    Reviewed by cpoker87 at 2018-06-05 05:17
  • 10. 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

    Reviewed by dlsuresh at 2017-09-26 10:00
  • 11. 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

    Reviewed by bryant1410 at 2017-04-18 07:54
  • 12. 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,

    Reviewed by muradabujamous at 2016-07-28 15:20
A Google like action sheet for iOS written in Swift.
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

Jun 29, 2022
Custom-action-sheet- - Custom action sheet with swift

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

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

Jul 26, 2022
A Swift library to provide a bouncy action sheet
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

Jun 29, 2022
Fully customizable and extensible action sheet controller written in Swift
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

Aug 3, 2022
Action sheet allows including your custom views and buttons.
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

Nov 26, 2021
Floating indicator, mimicrate to indicator which appear when silent mode turn on / off. Support large texts.
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

Aug 1, 2022
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way.
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

Aug 4, 2022
A countdown button for swift
A countdown button for swift

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

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.

Aug 11, 2022
This is an iOS control for selecting a date using UIDatePicker in an UIAlertController like manner
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

Jun 29, 2022
This is an iOS control for presenting any UIView in an UIAlertController like manner
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

Jun 21, 2022
This is an iOS control for selecting something using UIPickerView in an UIAlertController like manner
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

May 16, 2022
DropView - A SwiftUI library to display Apple Pencil and Pasteboard-like alerts on iOS.
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.

Jun 27, 2022
A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil
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

Aug 1, 2022
Create Apple-like alerts & toasts using SwiftUI
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

Aug 10, 2022
Animated alert library like Swarm app.
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

Jun 22, 2022
Swift library to manage in app notification in swift language, like WhatsApp, Telegram, Frind, ecc.
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

Jul 30, 2022
Use UIAlertController like a boss.
Use UIAlertController like a boss.

Description Requirements Installation CocoaPods Carthage Usage License Description CatAlertController is a high level manager object that with chainin

Feb 8, 2022