Latest 1.0.2
Homepage https://github.com/Sali0m/JVMessage
License MIT
Platforms ios 9.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

CocoaPods

JVMessage is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "JVMessage"

Manually

Import the file JVMessage.swift in your project.

Author

Sali0m, [email protected]

License

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

example

JVMessage is a simple way of showing a temporary message, some may call it a toaster. It’s currently showing at bottom of the desired view.

Usage

JVMessage.showMessage("Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine.", inView: self.view)

JVMessage.showErrorMessage("Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine.", inView: self.view)

You can subclass JVMessage to add utility function such as showSuccess(...) for example, or you can make an extension to do so.

You can change lot of settings in showMessage(...), here is the list:

  • text ==> The message to be displayed
  • inView ==> The view in which to display the message
  • font ==> The font your text should take
  • textColor ==> The color of your text
  • backgroundColor ==> The background color of the JVMessage view
  • edgeInset ==> The edgeInset of the label inside of the JVMessage view

For more information check out the project and run it.

Latest podspec

{
    "name": "JVMessage",
    "version": "1.0.2",
    "summary": "Easily show a toaster",
    "description": "JVMessage is a simple way of showing a temporary message, some may call it a toaster. It's currently showing at bottom of the desired view.",
    "homepage": "https://github.com/Sali0m/JVMessage",
    "screenshots": "http://www.saliom.be/githubImg/JVMessage.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Sali0m": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Sali0m/JVMessage.git",
        "tag": "1.0.2"
    },
    "social_media_url": "https://twitter.com/Sali0m",
    "swift_version": "4.2",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "JVMessage/Classes/**/*"
}

Pin It on Pinterest

Share This