Manager of progress using Lottie JSON, simple implemetation for your project Xcode.
- For example MyJson.
- Add your json animation lottie. You can get it https://lottiefiles.com/
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
self.IGPStartLoading(config: IGProgress.config)
self.IGPFinishLoading()
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 |
![]() |
![]() |
pod 'IGLottieProgress'
You are most welcome to contribute to this project!
✳️ Do you need Android Version for you project ?, check out here: https://github.com/LordSaac/ProgressLottieIGB
See more animations here: https://www.lottiefiles.com/
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.