Skip to content

ERbittuu/RainView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RainView

CI Status Version License Platform

RainViewLogo

Demo

Example

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

Requirements

Installation

1. CocoaPods

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

pod "RainView"

2. Manual

Add RainView.swift file into your project.

Usage

1. Import RainView in any class you want to use it.

    import RainView

2.1. Add direcly into the code.

import UIKit
import RainView


    var rainPlace = RainView.init(view: self.view)
    
    // Start normal Rain
    rainPlace.startRain()
    
    // Start heavy Rain
    rainPlace.startHeavyRain()
    
    // Start drizzle
    rainPlace.startDrizzle()

sometime if you want to Pause or Restart raining then following,

    //Stop rain
    rainPlace.stopRain()
    
    //restart rain 
    rainPlace.startRain()

If youwat to check Raining status then use,

    //Raining status 
     let alreadyRaining =  rainPlace.isRaining

Screenshots

alt Home alt HeavyRain alt Rain alt Drizzle

Contribution

Feel free to raise issue and pull requests accepted to imrove this library.

Author

erbittuu , erbittuu@gmail.com

License

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

About

Beautiful RainEffect🌨🌂🌧 with small piece of code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published