Readme update
An iOS Simple Swift Progress HUD
Can be used with SPM (Swift Package Manager).
The included sample code shows how to use the Progress HUD.
Import MKProgress:
import MKProgress
Show the Progress HUD:
MKProgress.show()
Show the Progress HUD with delay:
MKProgress.show(after: 0.1, animated: true)
Hide the Progress HUD:
MKProgress.hide()
MKProgress can be customized via the following configurations:
MKProgress.config.hudType = .radial MKProgress.config.width = 64.0 MKProgress.config.height = 64.0 MKProgress.config.hudColor = .white MKProgress.config.backgroundColor = UIColor(white: 0, alpha: 0.55) MKProgress.config.cornerRadius = 16.0 MKProgress.config.fadeInAnimationDuration = 0.2 MKProgress.config.fadeOutAnimationDuration = 0.25 MKProgress.config.hudYOffset = 15 MKProgress.config.circleRadius = 40.0 MKProgress.config.circleBorderWidth = 1.0 MKProgress.config.circleBorderColor = .darkGray MKProgress.config.circleAnimationDuration = 0.9 MKProgress.config.circleArcPercentage = 0.85 MKProgress.config.logoImage: UIImage? = nil MKProgress.config.logoImageSize = CGSize(width: 40, height: 40) MKProgress.config.activityIndicatorStyle = .whiteLarge MKProgress.config.activityIndicatorColor = .black MKProgress.config.preferredStatusBarStyle = .lightContent MKProgress.config.prefersStatusBarHidden = false
MKProgress is released under the MIT license. See LICENSE for details
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
MKProgress
An iOS Simple Swift Progress HUD
Requirements
Installation
Can be used with SPM (Swift Package Manager).
Usage
The included sample code shows how to use the Progress HUD.
Import MKProgress:
Show the Progress HUD:
Show the Progress HUD with delay:
Hide the Progress HUD:
Customization
MKProgress can be customized via the following configurations:
Licence
MKProgress is released under the MIT license. See LICENSE for details