uias / cocoabar Goto Github PK
View Code? Open in Web Editor NEW๐ซ A flexible SnackBar view for iOS
License: MIT License
๐ซ A flexible SnackBar view for iOS
License: MIT License
Add support for multiple types of show/hide transition animation.
Add a drop shadow to the top of the CocoaBar
It would be great if you could choose whether to pin the bar a t the bottom or the top!
Add enhanced iPad support to 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
i want snackbar top of keyboard. how to do it?
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.
Unfortunately, your library cannot be used with CocoaPods in an Objective-C project, because you don't use the @objc keyword on your classes :'(
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
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. ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.