diff --git a/LICENSE b/LICENSE
index 97a9b10..51f3128 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2020 Related Code
+Copyright (c) 2021 Related Code
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/ProgressHUD.podspec b/ProgressHUD.podspec
index 87c010b..fb12cb9 100644
--- a/ProgressHUD.podspec
+++ b/ProgressHUD.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ProgressHUD'
- s.version = '13.4'
+ s.version = '13.5'
s.license = 'MIT'
s.summary = 'A lightweight and easy-to-use Progress HUD for iOS.'
diff --git a/ProgressHUD/Sources/ProgressHUD.swift b/ProgressHUD/Sources/ProgressHUD.swift
index 8ab37a1..32a51e9 100644
--- a/ProgressHUD/Sources/ProgressHUD.swift
+++ b/ProgressHUD/Sources/ProgressHUD.swift
@@ -11,7 +11,7 @@
import UIKit
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
public enum AnimationType {
case systemActivityIndicator
@@ -27,7 +27,7 @@ public enum AnimationType {
case circleStrokeSpin
}
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
public enum AnimatedIcon {
case succeed
@@ -35,7 +35,7 @@ public enum AnimatedIcon {
case added
}
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
public enum AlertIcon {
case heart
@@ -59,7 +59,7 @@ public enum AlertIcon {
case search
}
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
extension AlertIcon {
var image: UIImage? {
@@ -87,7 +87,7 @@ extension AlertIcon {
}
}
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
public extension ProgressHUD {
class var animationType: AnimationType {
@@ -136,10 +136,10 @@ public extension ProgressHUD {
}
}
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
public extension ProgressHUD {
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func dismiss() {
DispatchQueue.main.async {
@@ -147,7 +147,7 @@ public extension ProgressHUD {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func show(_ status: String? = nil, interaction: Bool = true) {
DispatchQueue.main.async {
@@ -156,7 +156,7 @@ public extension ProgressHUD {
}
// MARK: -
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func show(_ status: String? = nil, icon: AlertIcon, interaction: Bool = true) {
let image = icon.image?.withTintColor(shared.colorAnimation, renderingMode: .alwaysOriginal)
@@ -166,7 +166,7 @@ public extension ProgressHUD {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func show(_ status: String? = nil, icon animatedIcon: AnimatedIcon, interaction: Bool = true) {
DispatchQueue.main.async {
@@ -175,7 +175,7 @@ public extension ProgressHUD {
}
// MARK: -
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func showSuccess(_ status: String? = nil, image: UIImage? = nil, interaction: Bool = true) {
DispatchQueue.main.async {
@@ -183,7 +183,7 @@ public extension ProgressHUD {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func showError(_ status: String? = nil, image: UIImage? = nil, interaction: Bool = true) {
DispatchQueue.main.async {
@@ -192,7 +192,7 @@ public extension ProgressHUD {
}
// MARK: -
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func showSucceed(_ status: String? = nil, interaction: Bool = true) {
DispatchQueue.main.async {
@@ -200,7 +200,7 @@ public extension ProgressHUD {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func showFailed(_ status: String? = nil, interaction: Bool = true) {
DispatchQueue.main.async {
@@ -208,7 +208,7 @@ public extension ProgressHUD {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func showAdded(_ status: String? = nil, interaction: Bool = true) {
DispatchQueue.main.async {
@@ -217,7 +217,7 @@ public extension ProgressHUD {
}
// MARK: -
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func showProgress(_ progress: CGFloat, interaction: Bool = false) {
DispatchQueue.main.async {
@@ -225,7 +225,7 @@ public extension ProgressHUD {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
class func showProgress(_ status: String?, _ progress: CGFloat, interaction: Bool = false) {
DispatchQueue.main.async {
@@ -234,7 +234,7 @@ public extension ProgressHUD {
}
}
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
public class ProgressHUD: UIView {
private var viewBackground: UIView?
@@ -267,33 +267,33 @@ public class ProgressHUD: UIView {
private let orientationDidChange = UIDevice.orientationDidChangeNotification
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
static let shared: ProgressHUD = {
let instance = ProgressHUD()
return instance
} ()
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
convenience private init() {
self.init(frame: UIScreen.main.bounds)
self.alpha = 0
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
required internal init?(coder: NSCoder) {
super.init(coder: coder)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override private init(frame: CGRect) {
super.init(frame: frame)
}
// MARK: -
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setup(status: String? = nil, progress: CGFloat? = nil, animatedIcon: AnimatedIcon? = nil, staticImage: UIImage? = nil, hide: Bool, interaction: Bool) {
setupNotifications()
@@ -320,7 +320,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupNotifications() {
if (viewBackground == nil) {
@@ -332,7 +332,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupBackground(_ interaction: Bool) {
if (viewBackground == nil) {
@@ -345,7 +345,7 @@ public class ProgressHUD: UIView {
viewBackground?.isUserInteractionEnabled = (interaction == false)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupToolbar() {
if (toolbarHUD == nil) {
@@ -360,7 +360,7 @@ public class ProgressHUD: UIView {
toolbarHUD?.backgroundColor = colorHUD
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupLabel(_ status: String?) {
if (labelStatus == nil) {
@@ -377,7 +377,7 @@ public class ProgressHUD: UIView {
labelStatus?.isHidden = (status == nil) ? true : false
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupProgress(_ progress: CGFloat?) {
viewAnimation?.removeFromSuperview()
@@ -396,7 +396,7 @@ public class ProgressHUD: UIView {
viewProgress?.setProgress(progress!)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupAnimation() {
viewProgress?.removeFromSuperview()
@@ -432,7 +432,7 @@ public class ProgressHUD: UIView {
if (animationType == .circleStrokeSpin) { animationCircleStrokeSpin(viewAnimation!) }
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupAnimatedIcon(_ animatedIcon: AnimatedIcon?) {
viewProgress?.removeFromSuperview()
@@ -456,7 +456,7 @@ public class ProgressHUD: UIView {
if (animatedIcon == .added) { animatedIconAdded(viewAnimatedIcon!) }
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupStaticImage(_ staticImage: UIImage?) {
viewProgress?.removeFromSuperview()
@@ -476,7 +476,7 @@ public class ProgressHUD: UIView {
}
// MARK: -
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func setupSize() {
var width: CGFloat = 120
@@ -511,7 +511,7 @@ public class ProgressHUD: UIView {
staticImageView?.center = CGPoint(x: centerX, y: centerY)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
@objc private func setupPosition(_ notification: Notification? = nil) {
var heightKeyboard: CGFloat = 0
@@ -541,7 +541,7 @@ public class ProgressHUD: UIView {
}, completion: nil)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func keyboardHeight() -> CGFloat {
if let keyboardWindowClass = NSClassFromString("UIRemoteKeyboardWindow"),
@@ -566,7 +566,7 @@ public class ProgressHUD: UIView {
}
// MARK: -
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func hudShow() {
timer?.invalidate()
@@ -584,7 +584,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func hudHide() {
if (self.alpha == 1) {
@@ -598,7 +598,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func hudDestroy() {
NotificationCenter.default.removeObserver(self)
@@ -617,7 +617,7 @@ public class ProgressHUD: UIView {
}
// MARK: - Animation
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationSystemActivityIndicator(_ view: UIView) {
let spinner = UIActivityIndicatorView(style: .large)
@@ -629,7 +629,7 @@ public class ProgressHUD: UIView {
view.addSubview(spinner)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationHorizontalCirclesPulse(_ view: UIView) {
let width = view.frame.size.width
@@ -666,7 +666,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationLineScaling(_ view: UIView) {
let width = view.frame.size.width
@@ -702,7 +702,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationSingleCirclePulse(_ view: UIView) {
let width = view.frame.size.width
@@ -738,7 +738,7 @@ public class ProgressHUD: UIView {
view.layer.addSublayer(layer)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationMultipleCirclePulse(_ view: UIView) {
let width = view.frame.size.width
@@ -781,7 +781,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationSingleCircleScaleRipple(_ view: UIView) {
let width = view.frame.size.width
@@ -822,7 +822,7 @@ public class ProgressHUD: UIView {
view.layer.addSublayer(layer)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationMultipleCircleScaleRipple(_ view: UIView) {
let width = view.frame.size.width
@@ -869,7 +869,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationCircleSpinFade(_ view: UIView) {
let width = view.frame.size.width
@@ -917,7 +917,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationLineSpinFade(_ view: UIView) {
let width = view.frame.size.width
@@ -965,7 +965,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationCircleRotateChase(_ view: UIView) {
let width = view.frame.size.width
@@ -1015,7 +1015,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animationCircleStrokeSpin(_ view: UIView) {
let width = view.frame.size.width
@@ -1063,7 +1063,7 @@ public class ProgressHUD: UIView {
}
// MARK: - Animated Icon
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animatedIconSucceed(_ view: UIView) {
let length = view.frame.width
@@ -1095,7 +1095,7 @@ public class ProgressHUD: UIView {
view.layer.addSublayer(layer)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animatedIconFailed(_ view: UIView) {
let length = view.frame.width
@@ -1136,7 +1136,7 @@ public class ProgressHUD: UIView {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
private func animatedIconAdded(_ view: UIView) {
let length = view.frame.width
@@ -1179,7 +1179,7 @@ public class ProgressHUD: UIView {
}
// MARK: - ProgressView
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
private class ProgressView: UIView {
var color: UIColor = .systemBackground {
@@ -1191,33 +1191,33 @@ private class ProgressView: UIView {
private var layerProgress = CAShapeLayer()
private var labelPercentage: UILabel = UILabel()
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
convenience init(_ color: UIColor) {
self.init(frame: .zero)
self.color = color
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
required init?(coder: NSCoder) {
super.init(coder: coder)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override init(frame: CGRect) {
super.init(frame: frame)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override func draw(_ rect: CGRect) {
super.draw(rect)
setupLayers()
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func setupLayers() {
subviews.forEach { $0.removeFromSuperview() }
@@ -1253,14 +1253,14 @@ private class ProgressView: UIView {
addSubview(labelPercentage)
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func setProgress(_ value: CGFloat, duration: TimeInterval = 0.2) {
let animation = CABasicAnimation(keyPath: "strokeEnd")
animation.duration = duration
animation.fromValue = progress
animation.toValue = value
- animation.fillMode = .forwards
+ animation.fillMode = .both
animation.isRemovedOnCompletion = false
layerProgress.add(animation, forKey: "animation")
diff --git a/ProgressHUD/app.xcodeproj/project.pbxproj b/ProgressHUD/app.xcodeproj/project.pbxproj
index a8ffc8f..41152f6 100644
--- a/ProgressHUD/app.xcodeproj/project.pbxproj
+++ b/ProgressHUD/app.xcodeproj/project.pbxproj
@@ -109,7 +109,7 @@
29D29EE91D9A59E4006CA074 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0940;
+ LastUpgradeCheck = 1240;
ORGANIZATIONNAME = KZ;
TargetAttributes = {
29D29EF01D9A59E4006CA074 = {
@@ -210,6 +210,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -235,7 +236,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
@@ -267,6 +268,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -286,7 +288,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
diff --git a/ProgressHUD/app/AppDelegate.swift b/ProgressHUD/app/AppDelegate.swift
index b8c1db1..1f18b45 100644
--- a/ProgressHUD/app/AppDelegate.swift
+++ b/ProgressHUD/app/AppDelegate.swift
@@ -11,13 +11,13 @@
import UIKit
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
@@ -31,27 +31,27 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
return true
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func applicationWillResignActive(_ application: UIApplication) {
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func applicationDidEnterBackground(_ application: UIApplication) {
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func applicationWillEnterForeground(_ application: UIApplication) {
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func applicationDidBecomeActive(_ application: UIApplication) {
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func applicationWillTerminate(_ application: UIApplication) {
}
diff --git a/ProgressHUD/app/ViewController.swift b/ProgressHUD/app/ViewController.swift
index cac2010..91d4139 100644
--- a/ProgressHUD/app/ViewController.swift
+++ b/ProgressHUD/app/ViewController.swift
@@ -11,7 +11,7 @@
import UIKit
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
class ViewController: UITableViewController {
@IBOutlet var cellText: UITableViewCell!
@@ -37,7 +37,7 @@ class ViewController: UITableViewController {
private let textFailed = "Something went wrong."
private let textAdded = "Successfully added."
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override func viewDidLoad() {
super.viewDidLoad()
@@ -105,7 +105,7 @@ class ViewController: UITableViewController {
}
// MARK: - Progress methods
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func actionProgressStart(_ status: String? = nil) {
timer?.invalidate()
@@ -123,7 +123,7 @@ class ViewController: UITableViewController {
}
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func actionProgressStop() {
timer?.invalidate()
@@ -136,16 +136,16 @@ class ViewController: UITableViewController {
}
// MARK: - UITableViewDataSource
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
extension ViewController {
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override func numberOfSections(in tableView: UITableView) -> Int {
return 8
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if (section == 0) { return 3 }
@@ -160,7 +160,7 @@ extension ViewController {
return 0
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if (indexPath.section == 0) && (indexPath.row == 0) { return cellText }
@@ -179,7 +179,7 @@ extension ViewController {
return UITableViewCell()
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
func tableView(_ tableView: UITableView, cellWithText text: String) -> UITableViewCell {
var cell: UITableViewCell! = tableView.dequeueReusableCell(withIdentifier: "cell")
@@ -189,7 +189,7 @@ extension ViewController {
return cell
}
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
if (section == 1) { return "Animation" }
@@ -205,10 +205,10 @@ extension ViewController {
}
// MARK: - UITableViewDelegate
-//-------------------------------------------------------------------------------------------------------------------------------------------------
+//-----------------------------------------------------------------------------------------------------------------------------------------------
extension ViewController {
- //---------------------------------------------------------------------------------------------------------------------------------------------
+ //-------------------------------------------------------------------------------------------------------------------------------------------
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)
diff --git a/README.md b/README.md
index d0c965b..f2194ce 100644
--- a/README.md
+++ b/README.md
@@ -4,9 +4,9 @@
-## WHAT'S NEW IN 13.4
+## WHAT'S NEW IN 13.5
-- New features + complete Swift refactoring.
+- Bugfix related to showProgress.
## OVERVIEW
@@ -146,15 +146,11 @@ public enum AlertIcon {
}
```
-## CONTACT
-
-Do you have any questions or ideas? My email is info@relatedcode.com or you can find some more info at [relatedcode.com](https://relatedcode.com)
-
## LICENSE
MIT License
-Copyright (c) 2020 Related Code
+Copyright (c) 2021 Related Code
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/VERSION.txt b/VERSION.txt
index 2c891c2..2acb808 100644
--- a/VERSION.txt
+++ b/VERSION.txt
@@ -1 +1 @@
-13.4
\ No newline at end of file
+13.5
\ No newline at end of file