Skip to content

mrdrozdov-github/SlideInView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlideInView

This is a quick and lightweight example of how to present a notification like view from the bottom of a view. Using SlideInView, the code you'd need would look something like this:

UIView *notificationView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 100)];
notificationView.backgroundColor = [UIColor colorWithRed:5/255.0 green:61/255.0 blue:98/255.0 alpha:1];

SlidingViewManager *svm = [[SlidingViewManager alloc] initWithInnerView:notificationView containerView:self.view];

[svm slideViewIn];

The different approach taken here is to animate any view, without making assumption about whether it is a Warning or Failure message like many other libraries do.

Included are simple demos, most of which emulate the style you'd see in ALAlertBanner.

Demos

Currently all included in the same video.

  1. View with Button
  2. ALAlertBannerStyleSuccess
  3. ALAlertBannerStyleFailure
  4. ALAlertBannerStyleWarning
  5. ALAlertBannerStyleNotify
  6. Stacking Views

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published