Skip to content

Commit

Permalink
13.5
Browse files Browse the repository at this point in the history
  • Loading branch information
relatedcode committed Mar 23, 2021
1 parent 9c53599 commit 0a80575
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 91 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion ProgressHUD.podspec
Original file line number Diff line number Diff line change
@@ -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.'
Expand Down
118 changes: 59 additions & 59 deletions ProgressHUD/Sources/ProgressHUD.swift

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions ProgressHUD/app.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
29D29EE91D9A59E4006CA074 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0940;
LastUpgradeCheck = 1240;
ORGANIZATIONNAME = KZ;
TargetAttributes = {
29D29EF01D9A59E4006CA074 = {
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
14 changes: 7 additions & 7 deletions ProgressHUD/app/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) {

}
Expand Down
24 changes: 12 additions & 12 deletions ProgressHUD/app/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import UIKit

//-------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------
class ViewController: UITableViewController {

@IBOutlet var cellText: UITableViewCell!
Expand All @@ -37,7 +37,7 @@ class ViewController: UITableViewController {
private let textFailed = "Something went wrong."
private let textAdded = "Successfully added."

//---------------------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------------------
override func viewDidLoad() {

super.viewDidLoad()
Expand Down Expand Up @@ -105,7 +105,7 @@ class ViewController: UITableViewController {
}

// MARK: - Progress methods
//---------------------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------------------
func actionProgressStart(_ status: String? = nil) {

timer?.invalidate()
Expand All @@ -123,7 +123,7 @@ class ViewController: UITableViewController {
}
}

//---------------------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------------------
func actionProgressStop() {

timer?.invalidate()
Expand All @@ -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 }
Expand All @@ -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 }
Expand All @@ -179,7 +179,7 @@ extension ViewController {
return UITableViewCell()
}

//---------------------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------------------
func tableView(_ tableView: UITableView, cellWithText text: String) -> UITableViewCell {

var cell: UITableViewCell! = tableView.dequeueReusableCell(withIdentifier: "cell")
Expand All @@ -189,7 +189,7 @@ extension ViewController {
return cell
}

//---------------------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------------------
override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {

if (section == 1) { return "Animation" }
Expand All @@ -205,10 +205,10 @@ extension ViewController {
}

// MARK: - UITableViewDelegate
//-------------------------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------------------------------------
extension ViewController {

//---------------------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------------------
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {

tableView.deselectRow(at: indexPath, animated: true)
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

<img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/001.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/002.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/003.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/004.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/005.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/006.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/007.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/008.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/009.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/010.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/011.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/011.png" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/012.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/012.png" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/013.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/013.png" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/014.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/014.png" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/015.gif" width="80"> <img src="https://github.com/relatedcode/ProgressHUD/raw/master/Images/015.png" width="80">

## WHAT'S NEW IN 13.4
## WHAT'S NEW IN 13.5

- New features + complete Swift refactoring.
- Bugfix related to showProgress.

## OVERVIEW

Expand Down Expand Up @@ -146,15 +146,11 @@ public enum AlertIcon {
}
```

## CONTACT

Do you have any questions or ideas? My email is [email protected] 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
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13.4
13.5

0 comments on commit 0a80575

Please sign in to comment.