Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simple to use full screen loading view for iOS written in Swift

imaksp/UILoadingView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

UILoadingView

Simple to use full screen loading view for iOS written in Swift

Adding to your project:

To use this in your project, just download the UILoadingView.swift file and copy it into your project.

Usage:

To use the basic loading view, you can do the following:

// initialize the loading view
let loadingView = UILoadingView(frame: self.view.bounds)
// show the loading view
self.view.addSubview(loadingView)

You may also specify custom text to use instead of "Loading..."

let loadingView = UILoadingView(frame: self.view.bounds, text: "Logging in...")

When you want to remove the view, there are a few options:

loadingView.removeFromSuperview()
self.view.subviews[self.view.subviews.endIndex-1].removeFromSuperview()

depending on if you have access to the variable loadingView when you want to remove it.

About

Simple to use full screen loading view for iOS written in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages