GithubHelp home page GithubHelp logo

hassanrazajaffri / anloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anscoder/anloader

0.0 0.0 0.0 1.86 MB

Create Swift loader in a single line with beautiful animation. ๐Ÿต

License: MIT License

Ruby 10.39% Swift 84.25% C 5.36%

anloader's Introduction

ANLoader

๐Ÿ‘พ Create loading view with just a single lines of code. โ›ณ๏ธ

Build Status Version License Platform Swift 5.0 compatible

Example

To run the example project, clone the repo, and run pod install from the Example directory first. ๐ŸŽ‰

๐Ÿ›  How to start loading

By using a simple line create loading view. โ˜๐Ÿป

ANLoader.showLoading("Loading", disableUI: true)

By choosing 'disableUI' stops user interactions until you hide loading Activity. ๐Ÿ™Œ

โšก๏ธ Use directly without disable UI

ANLoader.showLoading()

๐Ÿ–๐Ÿป How to dismiss loading

No need to call other extra things it will be manage automatically. ๐Ÿ‘๐Ÿป

ANLoader.hide()

๐Ÿ“ Custom Settings

Easy to make changes by choosing options ๐Ÿ”ง

ANLoader.pulseAnimation = true //It will animate your Loading
ANLoader.activityColor = .darkGray
ANLoader.activityBackgroundColor = .clear
ANLoader.activityTextColor = .clear

Note : - Please keep in mind activityColor and activityBackgroundColor should be different.Otherwise you can manage by your self. Add custom settings in the AppDelegate class.

๐Ÿค” Requirements

  • Deployment target of your App is >= iOS 10.2
  • Xcode 10+

๐Ÿ’ป Installation

ANLoader is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ANLoader', :git => 'https://github.com/ANSCoder/ANLoader.git'

Swift Package Manager

dependencies: [
  .package(url: "https://github.com/ANSCoder/ANLoader.git", from: "2.0.0")
]

or

Manually drag and drop ANLoader.swift single file inside your project.

๐Ÿ‘ค Author

anscoder (Anand)

๐Ÿ“„ License

ANLoader is available under the MIT license. See the LICENSE file for more info.

anloader's People

Contributors

anscoder avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.