PUGifLoaderControl(Swift) - framework is a clean and easy-to-use and light weight loader framework meant to display the progress of an ongoing task on iOS.
- Very easy usage - just copy PUGifLoderControl.framework and import it wherever you need.
-
Embed the PUGifLoderControl/PUGifLoderControl.framework folder into your project (Find and drag PUGifLoderControl.framework from the example project).
-
- Open the app's Xcode project or workspace.
- Go to the app target's General configuration page.
- Add the framework target to the Embedded Binaries section by clicking the Add icon, highlighted in Figure below.
- Select your framework from the list of binaries that can be embedded.
-
For more info for embed binary please refer this link How to embed a framework
Import the control
import PUGifLoderControl
You can show the status of indeterminate tasks using one of the following ( GIF Or Activity indicator):
PUImageLoaderView.show("Loading", gifimagename: "foodloader")
- 1 - Text to display
- 2 - Name of gif image to show in loader
PUImageLoaderView.showWithActivityIndicator("Loading", activitycolor: UIColor.yellow, labelfontcolor:UIColor.yellow , labelfontsize: 16.0,activityStyle: UIActivityIndicatorViewStyle.whiteLarge)
- 1 - Text to display
- 2 - activitycolor - color of indicator
- 3 - labelfontcolor - color of label
- 4 - labelfontsize - font size of text to display
- 5 - activityStyle - UIActivityIndicatorViewStyle of activity indicator
PUImageLoaderView.hide()
:)