Latest 2.2.0
Homepage https://github.com/sereytraing/toasty
License MIT
Platforms ios 11.0
Authors , ,

Toasty_MVS

Build Status
CocoaPods Version

A Swift framework project to get a quick message like a toast in Android.

Getting Started

These instructions will get you a copy of the project up and running on your project.

Prerequisites

You will need CocoaPods if it’s not already done.
Here is how to install it :

sudo gem install cocoapods

Then enter this command in Terminal to complete the setup:

pod setup --verbose

Installation

Go to your project directory and enter the following in a terminal tab :

pod init

This will creates a Podfile for your Project.
The default file will looks like this :

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'ProjectName' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for ProjectName

end

Open it and delete the # and space before platform and add the following to your Podfile to look like this :

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'ProjectName' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for ProjectName
  pod 'Toasty_MVS'

end

Don’t use TextEdit for editing, it replaces standard quotes with more graphically appealing typeset quotes. This can cause CocoaPods to become confused and throw errors

Then run the following in Terminal

pod install

You can now use this Framework in your project by opening the .xcworkspace file created by CocoaPods instead of .xcodeproj

Examples

Toasty Screenshots

//show a message
ToastyView.showToast(viewController: self, withSimpleMessage: "Hello world !")

//show a message and an image
ToastyView.showToast(viewController: self, withMessage: "Hola", andImage: UIImage(named: "image"))

//show an image
ToastyView.showToast(viewController: self, withSimpleImage: UIImage(named: "image"))

Tools

We use Travis for Continuous integration and fastlane for Automation and release.

Latest podspec

{
    "name": "Toasty_MVS",
    "version": "2.2.0",
    "license": "MIT",
    "summary": "Avoir les toasts sur iOS",
    "homepage": "https://github.com/sereytraing/toasty",
    "authors": {
        "TRAING Sereypich": "[email protected]",
        "BOINET Maxime": "[email protected]",
        "OFFROY Vincent": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sereytraing/toasty.git",
        "branch": "master",
        "tag": "2.2.0"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "Toasty/*.swift",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This