Skip to content

StevenDXC/DxWaveRefresh_Swift

Repository files navigation

DxWaveRefresh_Swift

pull down to refresh with wave animation. by swift 3.0

#Demo

#Usage

let contentView = WaveRefreshView(frame: CGRect(x:0,y:0,width:view.bounds.width,height:1000));
contentView.topMargin = 200;      
contentView.bgColor = UIColor.white;
contentView.waveAmplitude = 15;
contentView.angle = 10;
contentView.gravity = .left
contentView.waveAnimationDuration = 1.6;

//add WaveRefreshView to UIScrollView, and as first subview
scrollView.addSubview(contentView!)

pulling down:

 contentView.progress = progress; //progress = current scrollView.contentOffset.y / the contentOffsetY of trigger refreshing

start refreshing:

contentView.startRefreshing();

stop refreshing:

contentView.stopRefreshing();

#Installation

carthage:

github "StevenDXC/DxWaveRefresh_Swift" ~> 1.0



#[Android vsersion](https://github.com/StevenDXC/DxWaveRefresh)

About

pull down to refresh with wave animation

Resources

License

Stars

Watchers

Forks

Packages

No packages published