All Projects → antonio081014 → SPWaterWaveProgressIndicatorView

antonio081014 / SPWaterWaveProgressIndicatorView

Licence: MIT license
An iOS Custom Water Wave Progress Indicator View with Demo

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to SPWaterWaveProgressIndicatorView

Highlightr
iOS & OSX Syntax Highlighter.
Stars: ✭ 1,116 (+4550%)
Mutual labels:  ios-lib
Metalnanovg
The Metal port of NanoVG.
Stars: ✭ 151 (+529.17%)
Mutual labels:  ios-lib
Core Layout
Flexbox & CSS-style Layout in Swift.
Stars: ✭ 215 (+795.83%)
Mutual labels:  ios-lib
Shapeview
A customized shape view with shadow and transparent background supported.
Stars: ✭ 90 (+275%)
Mutual labels:  ios-lib
Pinlayout
Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]
Stars: ✭ 1,870 (+7691.67%)
Mutual labels:  ios-lib
Lgbutton
A fully customisable subclass of the native UIControl which allows you to create beautiful buttons without writing any line of code.
Stars: ✭ 2,216 (+9133.33%)
Mutual labels:  ios-lib
Xmnetworking
A lightweight but powerful network library with simplified and expressive syntax based on AFNetworking.
Stars: ✭ 980 (+3983.33%)
Mutual labels:  ios-lib
Rhplaceholder
Show pleasant loading view for your users 😍
Stars: ✭ 238 (+891.67%)
Mutual labels:  ios-lib
Calendarkit
📅 Calendar for Apple platforms in Swift
Stars: ✭ 2,049 (+8437.5%)
Mutual labels:  ios-lib
Uigradient
A simple and powerful library for using gradient layer, image, color
Stars: ✭ 208 (+766.67%)
Mutual labels:  ios-lib
Flexlayout
FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.
Stars: ✭ 1,342 (+5491.67%)
Mutual labels:  ios-lib
Nvactivityindicatorview
A collection of awesome loading animations
Stars: ✭ 10,031 (+41695.83%)
Mutual labels:  ios-lib
Lmmediaplayer
A video and audio player with replaceable UI component.
Stars: ✭ 183 (+662.5%)
Mutual labels:  ios-lib
Ios Arkit
iOS Location based Augmented Reality engine
Stars: ✭ 88 (+266.67%)
Mutual labels:  ios-lib
Pvview
A small library that helps you to make an amazing parallax view
Stars: ✭ 227 (+845.83%)
Mutual labels:  ios-lib
Cocoaasyncsocket demo
基于AsyncSocket搭建即时通讯体系 . 包含TCP连接 , 消息发送 , 消息接收 , 心跳处理 ,断网重连 , 消息超时 , 消息分发 , 数据库结构设计 , 消息丢失等 . 以及UI设计, 文本表情消息/语音消息/图片消息/视频消息/文件消息/撤回消息/提示语消息的实现思路讲解
Stars: ✭ 981 (+3987.5%)
Mutual labels:  ios-lib
Ios Multiselectiontable
Beautiful way of having a multi-selection table on iOS written in Swift
Stars: ✭ 156 (+550%)
Mutual labels:  ios-lib
Swift Concurrency
Concurrency utilities for Swift
Stars: ✭ 251 (+945.83%)
Mutual labels:  ios-lib
Titled navigation bar
A beautiful and simple bottom navigation bar with smooth animation when switching selected item.
Stars: ✭ 232 (+866.67%)
Mutual labels:  ios-lib
Mycoretextlabel
图文混排 , 实现图片文字混排 , 可显示常规链接比如网址,@,#话题#,手机号 , 邮箱号等 , 可以自定义链接字,设置关键字高亮等功能 . 适用于微博,微信,IM聊天对话等场景 . 实现这些功能仅用了几百行代码,耦合性也较低
Stars: ✭ 192 (+700%)
Mutual labels:  ios-lib

SPWaterProgressIndicatorView

This is custom subclass of UIView, which indicates the progress of task in percent.

What it looks like?

Presentation

Directory

  • SPWaterProgressIndicatorView_README.md
  • SPWaterProgressIndicatorView.hm
  • SPWaterProgressIndicatorView.swift
  • WaterWaveDemo project demostrates how to use this class in Objective-C Project.
  • WaterWaveDemo_Swift project demostrates how to use this class in Swift Project.

How to use it?

  • Add SPWaterProgressIndicatorView.hm files to the project.
  • There are two ways to use this class:
    • Specify a UIView's class as SPWaterProgressIndicatorView in IB.
    • Using alloc | initWithFrame: (Objective-C) to create and initialize an instance, then add it to a UIView.
    • Using UIView | init(frame: CGRect) (Swift) to create and initialize an instance, then add it to a UIView.

Important to Know

  1. Init with init(frame: CGRect)
  2. No matter what CGRect being passed to initialize it, the view will be trunked to be a square.

Objective-C

// Initialization.
- (void)viewDidLoad {
    [super viewDidLoad];
    self.waterView = [[SPWaterProgressIndicatorView alloc] initWithFrame:self.view.bounds];
    self.waterView.center = self.view.center;
    [self.view addSubview:self.waterView];
    
}

// Update percent
[self.waterView updateWithPercentCompletion:percent];

Detailed Example in Objc.

Swift

// Initialization
override func viewDidLoad() {
    super.viewDidLoad()
        
    self.wave = SPWaterProgressIndicatorView(frame: self.view.bounds)
    self.wave.center = self.view.center;
    self.view.addSubview(self.wave)        
}

// Update percent
self.wave.completionInPercent = percent

Detailed Example in Swift.

Version

1.0

Reference & Thanks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].