Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

iThink32/InformationViewManager

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
4 Commits
 
 
 
 
 
 

Repository files navigation

InformationViewManager

A class that displays a message that disappears similar to a toast but with the touch of iOS

What is this?

A helper class that displays a small view that shows a message to a user and disappears. Sounds Famailiar to a toast right? But guess what it has UIKitDynamics involved.It supports the following:

  1. toast can be moved around via pan
  2. swipe the info view down and it is pushed out of the screen
  3. slowly try to move the info view to the bottom and it is automatically moved out of the screen
  4. dynamically resizes based on content
  5. its can be customized, to be specific everthing i.e image , title color,font and bgcolor

Usage:

    private lazy var infoViewManager:InformationViewManager = {
        return InformationViewManager(parentView: self.view)
    }()

where parentView is UIViewController.view or the container view in which the toast has to be displayed

and finally

        let dataModel = InformationViewDataModel(image: UIImage(named: "checkmark"), description: "This is a sample test This is a sample test", backgroundColor: UIColor.black, titleColor: UIColor.white, font: UIFont.systemFont(ofSize: 12))
        self.infoViewManager.showUsing(dataModel: dataModel)

thats it!

Video:

Screen.Recording.2021-04-21.at.8.55.16.PM.mov

About

A class that displays a message that disappears similar to a toast but with the touch of iOS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.