Skip to content

fcgeek/HorizontalLoadingView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

HorizontalLoadingView

仿安卓横向加载动画

demo

Usage

class WebViewController: UIViewController, UIWebViewDelegate {
    override func viewDidLoad() {
        super.viewDidLoad()
        let horizontalLoadingView = HorizontalLoadingView()
        horizontalLoadingView.frame = CGRect(x: 0, y: 0, w: 200, h: 2)
        view.addSubview(horizontalLoadingView)        
    }

    func webViewDidFinishLoad(_ webView: UIWebView) {        
        horizontalLoadingView.stop()
    }

    func webViewDidStartLoad(_ webView: UIWebView) {        
        horizontalLoadingView.start()
    }
}

About

仿安卓横向加载动画

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages