Code Monkey home page Code Monkey logo

akprocessindicator's Introduction

⏳ AKProcessIndicator

AKProcessIndicator ios MIT Carthage compatible Build Status codecov

It provides a Network Indicator for device that have a Safe Area.
This library was created by inheriting the wonderful animation of FTLinearActivityIndicator. Since it does not use deprecated isNetworkActivityIndicatorVisible, it can be used with confidence even in the latest environment.

Installation

CocoaPods

# Podfile
use_frameworks!

target 'YOUR_TARGET_NAME' do
    pod 'AKProcessIndicator'
end

Replace YOUR_TARGET_NAME and then, in the Podfile directory, type:

$ pod install

Carthage

Add this to Cartfile.

# Cartfile
github "AkkeyLab/AKProcessIndicator"

Run this script to install it.

$ carthage update --platform iOS

Usage

Please import AKProcessIndicator.

import AKProcessIndicator

If you want to use this, you must always perform the setup process immediately after startup.
I recommend writing the following process in application(_:didFinishLaunchingWithOptions:) / scene(_:willConnectTo:options:) called by AppDelegate or SceneDelegate.
If this is executed on a device other than iPhoneX / iPhoneXS / iPhoneXS Max / iPhoneXR / iPhone11 Pro / iPhone11 Pro Max / iPhone11, the processing in the method will be skipped.

UIApplication.shared.setupProcessIndicatorIfNeeded()

After that, it is possible to switch the display / non-display of Process Indicator by switching the flag.

UIApplication.shared.isLoading = true

Requirements

env version
Swift 5.x
Xcode 11.x
iOS 11.0

License

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

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.