This is a very small library / FrameWork for showing Loading Screen on iOS Apps. Most of the loading screen libraries shows full screen loading but TinyLoading can be shown on any component frame. You can use it just to show loading on a image or a view or a cell or on the whole screen.
To use it Clone the project in your project directory and add as an embaded framework (if you don't know how to do that you can watch this: https://www.youtube.com/watch?v=i7Yq2B00u9g . Of course there are other ways to that.). Nothing else!
To show a loading on a view you just do contentView.startLoading()
And to hide it contentView.stopLoading()
you can use any view as contentView (imageView, tableView, cell.contentView).
You can customise the Loading Screen in many ways.
the startLoading()
takes multiple parameters.
contentView.startLoading(indicatorPosition: IndicatorPosition,
backgroundAlpha: CGFloat,
indicatorStyle: UIActivityIndicatorViewStyle,
appearAnimationDuration: CGFloat,
appearanceType: AppearanceType,
blurEffect: UIBlurEffect)
Here IndicatorPosition
can be .top
, .bottom
and .center
(default).
And AppearanceType
can be .None
, .FromLeft
, .FromRight
, .FromTop
, .FromBottom
, .CrossDisolve
and .Default
.
All the parameters are optional. So pass only which you want to change.
Make any upgradation and place a pull request.
Jahid Hasan Polash
[email protected]
InfancyIT (https://infancyit.com/)