Latest 0.0.1
Homepage https://github.com/ZaidPathan/UIRainView
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

UIRainViewLogo

Demo

UIRainView

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 "UIRainView"

2. Manual

Add UIRainView.swift file into your project.

Usage

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

import UIRainView

2.1. Add using XIB or UIStoryboard

  • Add UIView to your view.
  • Give class name UIRainView to that UIView in Identity Inspactor.
  • Go to attribute inspactor and give Rain String value (Default is 💧) and Rain fall interval (Default is 5).
  • Connect IBOutlet of UIRainView
  • Start rain by calling : rainView?.rain()
  • Stop rain by calling : rainView?.drizzle()

2.2. Add direcly into the code.

import UIKit
import UIRainView

class ViewController: UIViewController {

    var rainView:UIRainView?

    override func viewDidLoad() {
        super.viewDidLoad()
        rainView = UIRainView()
        rainView?.frame = view.frame
        view.addSubview(rainView!)

        rainView?.rainString = "💧🎊🎉❤️💝💜💙💚💛🍰"
        rainView?.rainFallInterval = 7
        rainView?.rain()   //Start raining
    }

}

To Stop raining try following,

rainView?.drizzle()

Contribution

Feel free to raise issue and PR accepted to imrove this library.

Author

ZaidPathan , [email protected]

License

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

Latest podspec

{
    "name": "UIRainView",
    "version": "0.0.1",
    "summary": "Very LightWeight, Easy to integrate UIView subclass - A Swift3 component to get rain effect in your app.",
    "description": "# UIRainViewnn[![CI Status](http://img.shields.io/travis/ZaidPathan/UIRainView.svg?style=flat)](https://travis-ci.org/ZaidPathan/UIRainView)n[![Version](https://img.shields.io/cocoapods/v/UIRainView.svg?style=flat)](http://cocoapods.org/pods/UIRainView)n[![License](https://img.shields.io/cocoapods/l/UIRainView.svg?style=flat)](http://cocoapods.org/pods/UIRainView)n[![Platform](https://img.shields.io/cocoapods/p/UIRainView.svg?style=flat)](http://cocoapods.org/pods/UIRainView)nn![UIRainViewLogo](https://github.com/ZaidPathan/UIRainView/blob/master/Images/UIRainView_GitHubLogo.png)nn## Demonn![UIRainView](https://github.com/ZaidPathan/UIRainView/blob/master/Images/UIRainView.gif)nn## ExamplennTo run the example project, clone the repo, and run `pod install` from the Example directory first.nn## Requirementsnn## Installationnn### 1. CocoaPodsnnUIRainView is available through [CocoaPods](http://cocoapods.org). To installnit, simply add the following line to your Podfile:nn```rubynpod "UIRainView"n```nn### 2. ManualnnAdd `UIRainView.swift` file into your project.nn## Usagenn### 1. Import UIRainView in any class you want to use it.nnimport UIRainViewnn### 2.1. Add using XIB or UIStoryboardnn- Add UIView to your view.n- Give class name `UIRainView` to that UIView in Identity Inspactor.n- Go to attribute inspactor and give Rain String value (Default is ud83dudca7) and Rain fall interval (Default is 5).n- Connect IBOutlet of `UIRainView`n- **Start** rain by calling : `rainView?.rain()`n- **Stop** rain by calling : `rainView?.drizzle()`nn### 2.2. Add direcly into the code.nn```swiftnimport UIKitnimport UIRainViewnnclass ViewController: UIViewController {nnvar rainView:UIRainView?nnoverride func viewDidLoad() {nsuper.viewDidLoad()nrainView = UIRainView()nrainView?.frame = view.framenview.addSubview(rainView!)nnrainView?.rainString = "ud83dudca7ud83cudf8aud83cudf89u2764ufe0fud83dudc9dud83dudc9cud83dudc99ud83dudc9aud83dudc9bud83cudf70"nrainView?.rainFallInterval = 7nrainView?.rain()   //Start rainingn}nn}n```nTo **Stop** raining try following,nn```swiftnrainView?.drizzle()n```nn## ContributionnnFeel free to raise issue and PR accepted to imrove this library.nn## AuthornnZaidPathan , [email protected]## LicensennUIRainView is available under the MIT license. See the LICENSE file for more info.",
    "homepage": "https://github.com/ZaidPathan/UIRainView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ZaidPathan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ZaidPathan/UIRainView.git",
        "tag": "0.0.1"
    },
    "social_media_url": "https://twitter.com/zaidkhanintel",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "UIRainView/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This