Giter Site home page Giter Site logo

cocoabar's Issues

Show CocoaBar at top

It would be great if you could choose whether to pin the bar a t the bottom or the top!

Custom layout in Cocoabar

I can able to create a custom layout..But I need to change text labels in custom layout. Im not able to do that since custom layout are in CocoaLayout.I tried changing label text says unwrapping nil value

Allow to adjust/increase of the dismiss timer

In case of multiple calls for snackbar, the default behavior is for the bars to stack up. We do not like that behavior and it works better for our use case if we only have the snackbar reflect the last action. Everything works except one small thing. The problem is if say we have 2 actions with an interval of 1 seconds and say the snackbar disappears after 2 seconds, when we update the snackbar after the second action the timer does not get "updated" and the snackbar disappears after 1 second after the second action as opposed to 2 seconds as it should be.

Can you please whether tell me how I can use the library in such a use case or perhaps you can update the library and expose a method to "reset" the timer (basically prolonging its display) in some way.

Thanks.

doShowAnimated and doHideAnimated delegate call order

Hi Merrick,

This isn't as much an issue as feedback.

I have changed the callback order I expected from the didShowAnimated / didHideAnimated delegates in relation to the completion callbacks.

The call order of the completion handler and the didShowAnimated/didHideAnimated handler will be called in reverse order depending on the state of the animated flag.

So I changed your code, to call

willShowAnimated / willHideAnimated (This is ok)
completion (Line 431 / 492 of CocoaBar.swift)
didShowAnimate / didHideAnimated (This could be called before completion, depending on the animated flag passed in)

I raised this issue for the sake of symmetry and perhaps expected call order from client code.

Cheers,
Samson

Swift 3 CocoaPod

I see a commit on September 9th with message "use conversion tool," so it looks like you've started the process of converting to Swift 3.

However, the Example project still prompts to convert this, so it looks like there's a bit to be done still.

Do you have plans for Swift 3 release, in particular new CocoaPod version?

If you're too bogged down, will you accept/review PR for such? I'm happy to help here as I'm going to be needing it soon and would prefer to get changes into upstream if possible. ๐Ÿ˜„

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.