Latest 0.1.0
Homepage https://github.com/William-Weng/WWRippleEffect
License MIT
Platforms ios 10.0
Frameworks UIKit
Authors

WWRippleEffect – 一個簡單的點擊波紋效果

Swift 4.0 Version Platform License

一個簡單的點擊波紋效果 (上傳至Cocoapods)

使用範例

IBOutlet

import UIKit
import WWRippleEffect

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        WWRippleEffect.touch(touches: touches, viewController: self, duration: 2.0, lineWidth: 1.0, color: .blue, scale: 5.0, rippleSize: 32.0)
    }

    @IBAction func rippleShowed(_ sender: UIButton) {
        WWRippleEffect.click(for: sender, duration: 2.0, lineWidth: 1.0, color: .red, scale: 5.0)
    }
}

Latest podspec

{
    "name": "WWRippleEffect",
    "version": "0.1.0",
    "summary": "WWRippleEffect is a ripple effect for UIView. (u4e00u500bu7c21u55aeu7684u9edeu64cau6ce2u7d0bu6548u679c)",
    "homepage": "https://github.com/William-Weng/WWRippleEffect",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u7fc1u79b9u658c(William.Weng)": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "ios": {
        "vendored_frameworks": "WWRippleEffect.framework"
    },
    "source": {
        "git": "https://github.com/William-Weng/WWRippleEffect.git",
        "tag": "0.1.0"
    },
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This