Latest 0.0.2
Homepage https://github.com/iTofu/RingView
License MIT
Platforms ios 8.0, requires ARC
Authors

Travis
CocoaPods
CocoaPods
CocoaPods
LeoDev

⭕️ Ring View.

LCActionSheet

In me the tiger sniffs the rose.

心有猛虎,细嗅蔷薇。

Installation

CocoaPods

RingView is available on CocoaPods. Just add the following to your project Podfile:

pod 'RingView' # Podfile

Non-CocoaPods Installation

Just drag the RingView folder into your project.

Usage

  • In ViewController.swift:

    self.ringView = RingView(lineWidth: 5.0, strokeColor: .red)
    self.ringView.backgroundColor = .cyan
    self.view.addSubview(self.ringView)
    self.ringView.center = self.view.center
    self.ringView.bounds = CGRect(x: 0, y: 0, width: 200.0, height: 100.0)
    
    if #available(iOS 10.0, *) {
      Timer.scheduledTimer(withTimeInterval: 1 / 60.0, repeats: true) { (timer) in
          self.ringView.progress += 1 / 60.0 / 5.0
    
          if self.ringView.progress >= 1.0 {
              timer.invalidate()
          }
      }
    }

Support

  • If you have any question, just commit a issue.

  • Mail: echo bGVvZGF4aWFAZ21haWwuY29tCg== | base64 -D

  • Blog: https://LeoDev.me

  • Donations:

    • PayPal:

    Donate

    • Alipay or Wechat Pay:

    Donate with Alipay or Wechat Pay

    Please note: Donation does not imply any type of service contract.

License

RingView is released under the MIT License.

Latest podspec

{
    "name": "RingView",
    "version": "0.0.2",
    "summary": "Ring View. Support: https://LeoDev.me",
    "homepage": "https://github.com/iTofu/RingView",
    "license": "MIT",
    "authors": {
        "Leo": "[email protected]"
    },
    "social_media_url": "https://LeoDev.me",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/iTofu/RingView.git",
        "tag": "0.0.2"
    },
    "source_files": "Sources/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This