Coder Social home page Coder Social logo

igprogresslottie-swift's Introduction

IGProgress Lottie - Swift

Manager of progress using Lottie JSON, simple implemetation for your project Xcode.

Important Info:

Create folder into project:

Implementation

Code:

      import IGLottieProgress
      //Insert your json resource into project.
        IGProgress.config.urlLottieJson = "YOUR JSON LOTTIE NAME"
        // Set a time out for finish process.
        IGProgress.config.timer = 8
        //End your progress loading in any func
        self.IGPStartLoading(config: IGProgress.config) // <--- Start the progress

Start Progress:

self.IGPStartLoading(config: IGProgress.config)

Remove progress:

self.IGPFinishLoading()

Option table:

Config Type Description
urlLottieJson String Insert your json resource into project.
timer Int Set a time out for finish process.
message String Do your need add any message use this option
sizeTextMessage CGFloat Resize the text message
fontColorMessage UIColor Change color text message
backgroundColor UIColor Set color background for your windows.
alpha CGFloat Set apha color for windows, this normal is 0.5
contentMode UIView.ContentMode If do you need scale the animation use content mode
hight Int Set new size hight
width Int Set new size width
animationSpeed CGFloat Animation speed

Example View:

Cocoa Pod

pod 'IGLottieProgress'

Contribution

You are most welcome to contribute to this project!

Android version:

✳️   Do you need Android Version for you project ?, check out here: https://github.com/LordSaac/ProgressLottieIGB

Download more Animations:

See more animations here: https://www.lottiefiles.com/


Released May 12, 2021

Licence

Copyright 2021 Isaac G. Banda

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

igprogresslottie-swift's People

Contributors

lordsaac avatar

Watchers

James Cloos 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.