To run the example project, clone the repo, and run pod install
from the Example directory first.
UIRainView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RainView"
Add RainView.swift
file into your project.
import RainView
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
Feel free to raise issue and pull requests accepted to imrove this library.
erbittuu , erbittuu@gmail.com
RainView is available under the MIT license. See the LICENSE file for more info.