Latest 0.0.7
Homepage https://github.com/jeongjinho/SweeftToast
License MIT
Platforms ios 9.0
Authors

CocoaPods Version
Swift Version
Licence

SweeftToast is very simple android Style AlertView, So this library is a view inherited and implemented.
t’s just an implementation by creating a view and invoking a startup method!

Setup Instructions


CocoaPods


Install with CocoaPods by adding the following to your Podfile:

pod 'SweeftToast'

Screenshots

SweeftToast_ScreenShot

Basic Example


// basic usage
let toast = Toast(self,"hi Toast") // initial
toast.toastMessage = "change Message" // set message
toast.startToastView(duration: 3.0) // show Toast

// handler usage, When Toast is hidden 
 let toast = Toast(self, "this is after action Toast") 
 toast.startToastView(duration: 3.0) {
     // When toast is hidden, this execute this handler
     }
// show multiLine Text
 Toast(self, "Delete topic and update Topic data!", { (toast) in
            toast.toastButton.setTitle("cancel", for: .normal)
            toast.backgroundColor = UIColor.init(red: 0.0, green: 0.0, blue: 0.0, alpha: 0.75)
        }).textLine(2).viewWidth(300).startToastView(duration: 3.0)

MIT License

Copyright (c) 2019 jeong jin ho

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Latest podspec

{
    "name": "SweeftToast",
    "version": "0.0.7",
    "summary": "Simple Toast View.",
    "description": "ToastView is android style alert",
    "homepage": "https://github.com/jeongjinho/SweeftToast",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "jeongjinho": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jeongjinho/SweeftToast.git",
        "tag": "0.0.7"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Sources/*.swift"
}

Pin It on Pinterest

Share This