Git Product home page Git Product logo

dctoastview's Introduction

DCToast

A Toast View made in swift using auto layout and stack views.

sample gif

Requirements

iOS 11 or above and swift 4.2

Installation

DCToastView is available through Swift package manager. To install it, simply add this git repository into your xcode spm depenencies:

How to

After you have your cocoapods set up done and already added the pod for DCToastView, you just need to import in the View Controller you will like to use the Filter View.

import DCToast

Then just call the shared Toast Presenter instance to show or remove a toast message

ToastPresenter.shared.show(in: self.view, message: "This is a toast")
ToastPresenter.shared.remove()

Constructor properties go as follows:

  • view: The view in which the toast is going to be presented
  • message: The message that the toast will show
  • toastPlace: The place which can be .down or .up
  • backgroundColor: The background color of the toast; defaults to black
  • textColor: The text color of the message; defaults to white
  • timeOut: The amount of seconds for the toast to dismiss if not provided it means that the toast will be sticky (will remain until touched); defaults to nil
  • roundness: How round the toast will be: .none, .low, .mid, .high; defaults to .mid

Author

Vincent Berihuete, [email protected]

License

DCToastView is available under the MIT license. See the LICENSE file for more info.

dctoastview's People

Contributors

vberihuete avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

carabina

dctoastview's Issues

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.