Giter Site home page Giter Site logo

actionbutton's People

Contributors

anukhov avatar jkates1 avatar lourenco-marinho avatar readmecritic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

actionbutton's Issues

Manipulate ActionButton tapped.

You should create a documentation for this.. This is great, and I think a lot of people would like to leverage this. This is my question:

How do you change the title of the button when the ActionButton is tapped? For example, once the ActionButton is tapped, 3 options will appear. If optionA is selected, change the state of the ActionButton to optionA and hide the visual blur. I know it's written in swift, and I can take a look at the code later, just want to make sure if it's even possible.

Choppy animation on button toggle after first toggle

I noticed that when the content view is applied to the window on toggles after the first one a slight jump/choppiness is noticeable on to view components as the fade in and out.

actionbuttonchoppyanimation

I've done a small amount of troubleshooting so far and it might be due to either the alpha getting applied (maybe it needs an animate block?) or how the view is added/removed on action button toggle.

Thought before I go further, you may have a better idea where the issue may be.

App crashes when tap button

the app is constantly getting crashed when I tap the action button with error EXE_BAD_ACCESS could you please help what is causing is?

Button not rotating when tapped after setting background Image?

I am using your frame work for implementing floating action button. I tried to use an image for the button by setting actionButton.setImage = "".*The problem now is the button is not rotating as it was earlier. Any idea??
*

    ```

let twitterImage = UIImage(named: "twitter_icon.png")!
let plusImage = UIImage(named: "googleplus_icon.png")!

    let twitter = ActionButtonItem(title: "Twitter", image: twitterImage)
    twitter.action = { item in print("Twitter...") }

    let google = ActionButtonItem(title: "Google Plus", image: plusImage)
    google.action = { item in print("Google Plus...") }

    actionButton = ActionButton(attachedToView: self.view, items: [twitter, google])
    actionButton.action = { button in button.toggleMenu() }
    actionButton.setImage(UIImage(named: "bottom-logo-icon.png")!, forState: .Normal)
    actionButton.backgroundColor = UIColor.clearColor()

iOS 7 compatibility

Any chance of making iOS 7 compatible, even if dropping the blur effect support?

action button moving in scroll view

The button we place in a scroll view controller (or table view controller) is also scrolled on scroll event. Can you change this to hide or stay at its position even on scroll view.

When using the code in Objective C Project, it crashes

When using the code in Objective-C project, it crashes on line number 50: self.parentView = view of ActionButton.swift class. This is how I have implemented:
ActionButtonItem *item = [[ActionButtonItem alloc]initWithTitle:@"New Task" image:nil];
ActionButtonItem *item2 = [[ActionButtonItem alloc]initWithTitle:@"New Event" image:nil]; ActionButtonItem *item3 = [[ActionButtonItem alloc]initWithTitle:@"New Project" image:nil];
ActionButton *actionButton = [[ActionButton alloc]initWithAttachedToView:self.view items:@[item,item2,item3]];

objectvic equivalent dont toggle

i put this code

[actionButton setAction:^(ActionButton * button) {
[button toggleMenu];
}];

its not triggering the togglemenu

Swift 3 with IOS 9.0 Deployment Target

platform :ios, "9.0"
use_frameworks!

target 'uygulamacopreview' do
pod 'ActionButton', '~> 0.1.5' #floating action button
end

when i run command pod install this is what i get:

[!] Unable to satisfy the following requirements:

- ActionButton (~> 0.1.5) required by Podfile
- ActionButton (= 0.1.5) required by Podfile.lock

Specs satisfying the ActionButton (~> 0.1.5), ActionButton (= 0.1.5) dependency were found, but they required a higher minimum deployment target.

can i go to another screen by taping the + button?

First thing you have done an amazing job - thank you very much! Secondly, I wanted to know if we can add a transition between screens when you press the button (+) not on Google and Twitter. I know that the class is NSObject and not UIButton, and that can create problems with the method "touchesBegan: withEvent:" and with "Prepareforsegue"
In simple terms, I want to press the button and it will take me to another screen
tnx ๐Ÿ‘

UITableViewController initialization(?)

I don't know if this is possible, but is there a way to show this on top of a UITableViewController? I have a TabBarController that holds around 3 UITableViewControllers, and 2 UICollectionViewControllers. Is there a way to initialize this on any one of them? This is awesome btw.

toggle menu

How would I make it so that the menu toggles once the label has been pressed? The label and the toggle menu are in separate classes so I couldn't think of anything else other than using nsnotification

Problem in dismiss or hide the actionview after clicking action item

I can able to move to another screen.But when i come back i again see the actionsheet open.
I wanted to hide the floating button before navigating to another screen.

 let ActionBtnAddaction = ActionButtonItem(title: "Add screen", image:nil)
        ActionBtnAddaction.action = { item in self.performSegue(withIdentifier: "NavToAddscreen", sender: nil)
            
        }


actionButton = ActionButton(attachedToView: self.view, items: [ActionBtnAddSite])
        actionButton.action = { button in button.toggleMenu() }
        actionButton.setTitle("+", forState: UIControlState())
        
        actionButton.backgroundColor = UIColor(red: 238.0/255.0, green: 130.0/255.0, blue: 34.0/255.0, alpha:1.0)

How can I change the position of ActionButton

Hi,

Thanks dude, you have created a nice tool!
I have read the source code that the position for ActionButton is fixed at bottom right of current screen, not be able to adjust the position, so if someone uses Action in a Tab pattern App., the ActionButton can be hidden by the Tab Controller.
So I guess whether you can add parameters in the initializer or create a helper method for changing the layout parameters.

I tried to change the init method to:
public init(attachedToView view: UIView, items: [ActionButtonItem]?, tailingOffset: CGFloat = 15.0, bottomOffset: CGFloat = 15.0) {
......
self.installConstraints(tailingOffset, bottomOffset: bottomOffset)
}

private func installConstraints(tailingOffset: CGFloat = 15.0, bottomOffset: CGFloat = 15.0) {
......
let trailingSpacing = NSLayoutConstraint.constraintsWithVisualFormat("V:[floatButton]-(tailingOffset)-|", options: NSLayoutFormatOptions.AlignAllCenterX, metrics: nil, views: views)
let bottomSpacing = NSLayoutConstraint.constraintsWithVisualFormat("H:[floatButton]-(bottomOffset)-|", options: NSLayoutFormatOptions.AlignAllCenterX, metrics: nil, views: views)
......
}

Hope you can change for some customization.

Thanks

Leon

FlotingButton Action SetImage Method is not working

I Want to try to set image over the "+" sign. But its not working.

let btnImage = UIImage(named: "search")
self.floatButton.setImage(btnImage, for: UIControlState())

Please let me know if any change this button image.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.