Simple water drops animation πŸ’§
Switch branches/tags
Nothing to show
Clone or download
LeFal Merge pull request #6 from minomi/master
μ΄λŸ°κ²ƒλ“€μ„ μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€.
Latest commit f2f4d42 Oct 14, 2017

README.md

WaterDrops

Simple water drops animation πŸ’§

Example

override func viewDidLoad() {
     super.viewDidLoad()
     
         self.view.backgroundColor = UIColor.white
 
         // custom configuration
         let waterDropsView = WaterDropsView(frame: self.view.frame,
                                           direction: .up,
                                           dropNum: 10,
                                           color: UIColor.red.withAlphaComponent(0.7),
                                           minDropSize: 10,
                                           maxDropSize: 20,
                                           minLength: 50,
                                           maxLength: 100,
                                           minDuration: 4,
                                           maxDuration: 8)
         
         // add animation 
         waterDropsView.addAnimation()
         self.view.addSubview(waterDropsView)
}

Installation

Cocoapods

pod "WaterDrops"

Author

LeFal, qwertyhj2@gmail.com

License

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