Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Features #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

NathanRussak
Copy link

New functions / properties:

  • Snackbars can now be displayed indefinitely. Can be accomplished by setting the widget's timeout duration to 0 or less.
  • Snackbar message and action button text color can now be customized. Can be accomplished via the new "setMessageTextColor:" and "setActionTextColor:forState" functions.
  • Snackbars can now be tapped to dismiss. Disabled by default, can be enabled by setting the new "canTapToDismiss" property to TRUE / YES.
  • Snackbars can now be added as a subview to a specific view. Can be accomplished via the new "showInView:" function.
  • Hid the divider view. Snackbars no longer have visible dividers in the latest revision of Google's Material design guidelines.

Nathan Russak added 6 commits November 19, 2015 09:07
The latest revision of Google’s material design supports the concept of
Snackbar widgets that are displayed indefinitely until the user
performs an action that manually dismisses them.
Added a “canTopToDismiss” property that will enable / disable the
ability to tap to dismiss a displayed Snackbar. This is helpful if an
indefinitely displayed Snackbar is currently visible. The tap gesture
is automatically removed if the user taps on the action button that way
the user can’t dismiss the Snackbar while a long running action is
taking place.
Added public functions that allow the user to change the text color
used by the Snackbar's message label and action button.
Enhanced the logic behind defining the Snackbar's horizontal
constraints. Behavior on phone based devices remains unchanged. But now
if a Snackbar is presented on an iPad, it uses a fixed width of 400
points and is centered horizontally.
Modified my code contributions to more closely resemble the code style
of the original author.
Added a new “showInView:” function that allows developers to add a
SnackBar as a subview within a specific UIView.
@dogo
Copy link

dogo commented Jan 29, 2016

+1

(Pretty cool)
Snackbars can now be displayed indefinitely. Can be accomplished by setting the widget's timeout duration to 0 or less.

@sitefinitysteve
Copy link

This PR should merge 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants