diff --git a/Example/Example/Scenes/AdvancedExample/AdvancedExampleTableViewController.swift b/Example/Example/Scenes/AdvancedExample/AdvancedExampleTableViewController.swift index 70dabb8..7d294f3 100644 --- a/Example/Example/Scenes/AdvancedExample/AdvancedExampleTableViewController.swift +++ b/Example/Example/Scenes/AdvancedExample/AdvancedExampleTableViewController.swift @@ -6,9 +6,9 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import UIKit -import SwiftUI import GradientLoadingBar +import SwiftUI +import UIKit final class AdvancedExampleTableViewController: UITableViewController { diff --git a/Example/Example/Scenes/AdvancedExample/Cells/CustomSuperviewTableViewCell.swift b/Example/Example/Scenes/AdvancedExample/Cells/CustomSuperviewTableViewCell.swift index 47543b9..34fb838 100644 --- a/Example/Example/Scenes/AdvancedExample/Cells/CustomSuperviewTableViewCell.swift +++ b/Example/Example/Scenes/AdvancedExample/Cells/CustomSuperviewTableViewCell.swift @@ -6,8 +6,8 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import UIKit import GradientLoadingBar +import UIKit final class CustomSuperviewTableViewCell: UITableViewCell { diff --git a/Example/Example/Scenes/AdvancedExample/Cells/InterfaceBuilderSetupTableViewCell.swift b/Example/Example/Scenes/AdvancedExample/Cells/InterfaceBuilderSetupTableViewCell.swift index dfc0702..88079fa 100644 --- a/Example/Example/Scenes/AdvancedExample/Cells/InterfaceBuilderSetupTableViewCell.swift +++ b/Example/Example/Scenes/AdvancedExample/Cells/InterfaceBuilderSetupTableViewCell.swift @@ -6,8 +6,8 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import UIKit import GradientLoadingBar +import UIKit final class InterfaceBuilderSetupTableViewCell: UITableViewCell { diff --git a/Example/Example/Scenes/BasicExample/BasicExampleViewController.swift b/Example/Example/Scenes/BasicExample/BasicExampleViewController.swift index 289ed17..949c900 100644 --- a/Example/Example/Scenes/BasicExample/BasicExampleViewController.swift +++ b/Example/Example/Scenes/BasicExample/BasicExampleViewController.swift @@ -6,9 +6,9 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import UIKit -import SwiftUI import GradientLoadingBar +import SwiftUI +import UIKit final class BasicExampleViewController: UIViewController { diff --git a/Example/Example/Scenes/NavigationBarExample/NavigationBarExampleViewController.swift b/Example/Example/Scenes/NavigationBarExample/NavigationBarExampleViewController.swift index 4ed3a44..3677ed1 100644 --- a/Example/Example/Scenes/NavigationBarExample/NavigationBarExampleViewController.swift +++ b/Example/Example/Scenes/NavigationBarExample/NavigationBarExampleViewController.swift @@ -6,9 +6,9 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import UIKit -import SwiftUI import GradientLoadingBar +import SwiftUI +import UIKit final class NavigationBarExampleViewController: UIViewController { diff --git a/Example/Example/Scenes/SafeAreaExample/SafeAreaExampleViewController.swift b/Example/Example/Scenes/SafeAreaExample/SafeAreaExampleViewController.swift index c4d6be7..ee2ed90 100644 --- a/Example/Example/Scenes/SafeAreaExample/SafeAreaExampleViewController.swift +++ b/Example/Example/Scenes/SafeAreaExample/SafeAreaExampleViewController.swift @@ -6,9 +6,9 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import UIKit -import SwiftUI import GradientLoadingBar +import SwiftUI +import UIKit final class SafeAreaExampleViewController: UIViewController { diff --git a/Example/Example/Scenes/SwiftUIExample/SwiftUIExampleView.swift b/Example/Example/Scenes/SwiftUIExample/SwiftUIExampleView.swift index 925cf30..6904d2f 100644 --- a/Example/Example/Scenes/SwiftUIExample/SwiftUIExampleView.swift +++ b/Example/Example/Scenes/SwiftUIExample/SwiftUIExampleView.swift @@ -6,8 +6,8 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import SwiftUI import GradientLoadingBar +import SwiftUI struct SwiftUIExampleView: View { diff --git a/Example/ExampleSnapshotTests/GradientActivityIndicatorView/GradientActivityIndicatorViewTestCase.swift b/Example/ExampleSnapshotTests/GradientActivityIndicatorView/GradientActivityIndicatorViewTestCase.swift index 2e55a5b..0222523 100644 --- a/Example/ExampleSnapshotTests/GradientActivityIndicatorView/GradientActivityIndicatorViewTestCase.swift +++ b/Example/ExampleSnapshotTests/GradientActivityIndicatorView/GradientActivityIndicatorViewTestCase.swift @@ -6,8 +6,8 @@ // Copyright © 2019 Felix Mau. All rights reserved. // -import XCTest import SnapshotTesting +import XCTest @testable import GradientLoadingBar diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift b/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift index b67cad0..0798134 100644 --- a/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift +++ b/Example/ExampleSnapshotTests/GradientLoadingBarController/GradientLoadingBarControllerTestCase.swift @@ -6,8 +6,8 @@ // Copyright © 2020 Felix Mau. All rights reserved. // -import XCTest import SnapshotTesting +import XCTest @testable import GradientLoadingBar diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift b/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift index 7b74cc9..815fc1f 100644 --- a/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift +++ b/Example/ExampleSnapshotTests/GradientLoadingBarController/NotchGradientLoadingBarControllerTestCase.swift @@ -6,8 +6,8 @@ // Copyright © 2020 Felix Mau. All rights reserved. // -import XCTest import SnapshotTesting +import XCTest @testable import GradientLoadingBar diff --git a/Example/ExampleSnapshotTests/GradientLoadingBarView/GradientLoadingBarViewTestCase.swift b/Example/ExampleSnapshotTests/GradientLoadingBarView/GradientLoadingBarViewTestCase.swift index 5c4f4fc..1797174 100644 --- a/Example/ExampleSnapshotTests/GradientLoadingBarView/GradientLoadingBarViewTestCase.swift +++ b/Example/ExampleSnapshotTests/GradientLoadingBarView/GradientLoadingBarViewTestCase.swift @@ -6,9 +6,9 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import XCTest -import SwiftUI import SnapshotTesting +import SwiftUI +import XCTest @testable import GradientLoadingBar diff --git a/Example/ExampleTests/ViewModel/GradientActivityIndicatorViewModelTestCase.swift b/Example/ExampleTests/ViewModel/GradientActivityIndicatorViewModelTestCase.swift index 4a4f77c..6347723 100644 --- a/Example/ExampleTests/ViewModel/GradientActivityIndicatorViewModelTestCase.swift +++ b/Example/ExampleTests/ViewModel/GradientActivityIndicatorViewModelTestCase.swift @@ -6,8 +6,8 @@ // Copyright © 2019 Felix Mau. All rights reserved. // -import XCTest import LightweightObservable +import XCTest @testable import GradientLoadingBar diff --git a/Example/ExampleTests/ViewModel/GradientLoadingBarView+ViewModelTestCase.swift b/Example/ExampleTests/ViewModel/GradientLoadingBarView+ViewModelTestCase.swift index 849b546..7a24533 100644 --- a/Example/ExampleTests/ViewModel/GradientLoadingBarView+ViewModelTestCase.swift +++ b/Example/ExampleTests/ViewModel/GradientLoadingBarView+ViewModelTestCase.swift @@ -6,8 +6,8 @@ // Copyright © 2022 Felix Mau. All rights reserved. // -import XCTest import SwiftUI +import XCTest @testable import GradientLoadingBar diff --git a/Example/ExampleTests/ViewModel/GradientLoadingBarViewModelTestCase.swift b/Example/ExampleTests/ViewModel/GradientLoadingBarViewModelTestCase.swift index 4d17842..aefd1e2 100644 --- a/Example/ExampleTests/ViewModel/GradientLoadingBarViewModelTestCase.swift +++ b/Example/ExampleTests/ViewModel/GradientLoadingBarViewModelTestCase.swift @@ -6,8 +6,8 @@ // Copyright © 2017 Felix Mau. All rights reserved. // -import XCTest import LightweightObservable +import XCTest @testable import GradientLoadingBar diff --git a/Example/Podfile.lock b/Example/Podfile.lock index b4fe78e..907b2e7 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -4,8 +4,8 @@ PODS: - LightweightObservable (2.2.1) - SnapshotTesting (1.9.0) - SwiftConfigurationFiles (0.0.1) - - SwiftFormat/CLI (0.49.13) - - SwiftLint (0.47.1) + - SwiftFormat/CLI (0.49.15) + - SwiftLint (0.48.0) DEPENDENCIES: - GradientLoadingBar (from `../`) @@ -29,7 +29,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: SwiftConfigurationFiles: - :commit: bc225b564e963fa72d2bdae67b6de9ea98da3121 + :commit: efe01ba39069e8957fb89217b8c7fed298254691 :git: https://github.com/fxm90/SwiftConfigurationFiles.git SPEC CHECKSUMS: @@ -37,8 +37,8 @@ SPEC CHECKSUMS: LightweightObservable: 64d0f623a4eec857e2680476380a08f3117a1a92 SnapshotTesting: 6141c48b6aa76ead61431ca665c14ab9a066c53b SwiftConfigurationFiles: 1cf2228a911ebed9f42f8dec077bb634f04ca6c8 - SwiftFormat: 53864d9acbae3a954eb413736729500fe7051435 - SwiftLint: f80f1be7fa96d30e0aa68e58d45d4ea1ccaac519 + SwiftFormat: 4798a30dd0706958ebe9e88aa9b481a1f79edae5 + SwiftLint: 284cea64b6187c5d6bd83e9a548a64104d546447 PODFILE CHECKSUM: 236416c4c4856713b28b6bf3da014054e9b319f2 diff --git a/Example/Pods/Manifest.lock b/Example/Pods/Manifest.lock index b4fe78e..907b2e7 100644 --- a/Example/Pods/Manifest.lock +++ b/Example/Pods/Manifest.lock @@ -4,8 +4,8 @@ PODS: - LightweightObservable (2.2.1) - SnapshotTesting (1.9.0) - SwiftConfigurationFiles (0.0.1) - - SwiftFormat/CLI (0.49.13) - - SwiftLint (0.47.1) + - SwiftFormat/CLI (0.49.15) + - SwiftLint (0.48.0) DEPENDENCIES: - GradientLoadingBar (from `../`) @@ -29,7 +29,7 @@ EXTERNAL SOURCES: CHECKOUT OPTIONS: SwiftConfigurationFiles: - :commit: bc225b564e963fa72d2bdae67b6de9ea98da3121 + :commit: efe01ba39069e8957fb89217b8c7fed298254691 :git: https://github.com/fxm90/SwiftConfigurationFiles.git SPEC CHECKSUMS: @@ -37,8 +37,8 @@ SPEC CHECKSUMS: LightweightObservable: 64d0f623a4eec857e2680476380a08f3117a1a92 SnapshotTesting: 6141c48b6aa76ead61431ca665c14ab9a066c53b SwiftConfigurationFiles: 1cf2228a911ebed9f42f8dec077bb634f04ca6c8 - SwiftFormat: 53864d9acbae3a954eb413736729500fe7051435 - SwiftLint: f80f1be7fa96d30e0aa68e58d45d4ea1ccaac519 + SwiftFormat: 4798a30dd0706958ebe9e88aa9b481a1f79edae5 + SwiftLint: 284cea64b6187c5d6bd83e9a548a64104d546447 PODFILE CHECKSUM: 236416c4c4856713b28b6bf3da014054e9b319f2 diff --git a/Example/Pods/SwiftConfigurationFiles/.swiftformat b/Example/Pods/SwiftConfigurationFiles/.swiftformat index 4e7f300..6e0c1f3 100644 --- a/Example/Pods/SwiftConfigurationFiles/.swiftformat +++ b/Example/Pods/SwiftConfigurationFiles/.swiftformat @@ -23,11 +23,11 @@ # --disable andOperator --disable blankLinesAtStartOfScope ---disable sortedImports --disable wrapMultilineStatementBraces # # Rule Configuration # --wraparguments "after-first" ---wrapcollections "before-first" \ No newline at end of file +--wrapcollections "before-first" +--importgrouping testable-last \ No newline at end of file diff --git a/Example/Pods/SwiftConfigurationFiles/README.md b/Example/Pods/SwiftConfigurationFiles/README.md index e548dbb..1812f97 100644 --- a/Example/Pods/SwiftConfigurationFiles/README.md +++ b/Example/Pods/SwiftConfigurationFiles/README.md @@ -1,2 +1,9 @@ # Swift Configuration Files 🛠 -Repository containing configuration files for Swift development, e.g. for tools like [SwiftLint](https://github.com/realm/SwiftLint) or [SwiftFormat](https://github.com/nicklockwood/SwiftFormat). \ No newline at end of file +Repository containing configuration files for Swift development, e.g. for tools like [SwiftLint](https://github.com/realm/SwiftLint) or [SwiftFormat](https://github.com/nicklockwood/SwiftFormat). + +### Author +Felix Mau (me(@)felix.hamburg) + +### License + +Swift Configuration Files is available under the MIT license. See the LICENSE file for more info. \ No newline at end of file diff --git a/Example/Pods/SwiftFormat/CommandLineTool/swiftformat b/Example/Pods/SwiftFormat/CommandLineTool/swiftformat index 23e6cec..f8f3d2f 100755 Binary files a/Example/Pods/SwiftFormat/CommandLineTool/swiftformat and b/Example/Pods/SwiftFormat/CommandLineTool/swiftformat differ diff --git a/Example/Pods/SwiftFormat/README.md b/Example/Pods/SwiftFormat/README.md index 31c6c50..64293b7 100644 --- a/Example/Pods/SwiftFormat/README.md +++ b/Example/Pods/SwiftFormat/README.md @@ -236,7 +236,7 @@ Alternatively, you might want to consider running SwiftFormat in [lint](#linting To set up SwiftFormat as an Xcode build phase, do the following: -#### 1) Create a BuildTools folder & Package.swift +#### 1) Create a BuildTools folder and Package.swift 1. Create a folder called `BuildTools` in the same folder as your xcodeproj file 2. In this folder, create a file called `Package.swift`, with the following contents: @@ -255,7 +255,7 @@ let package = Package( ``` 3. If you are running Xcode 11.4 or later, in the `BuildTools` folder create a file called `Empty.swift` with nothing in it. This is to satisfy a change in Swift Package Manager. -#### 2) Add a Build phases to your app target +#### 2) Add a Build phase to your app target 1. Click on your project in the file list, choose your target under `TARGETS`, click the `Build Phases` tab 2. Add a `New Run Script Phase` by clicking the little plus icon in the top left diff --git a/Example/Pods/SwiftLint/swiftlint b/Example/Pods/SwiftLint/swiftlint index 402f150..b016908 100755 Binary files a/Example/Pods/SwiftLint/swiftlint and b/Example/Pods/SwiftLint/swiftlint differ diff --git a/GradientLoadingBar/Feature/GradientActivityIndicatorView/GradientActivityIndicatorView.swift b/GradientLoadingBar/Feature/GradientActivityIndicatorView/GradientActivityIndicatorView.swift index b6618d0..d2ad4e3 100644 --- a/GradientLoadingBar/Feature/GradientActivityIndicatorView/GradientActivityIndicatorView.swift +++ b/GradientLoadingBar/Feature/GradientActivityIndicatorView/GradientActivityIndicatorView.swift @@ -6,8 +6,8 @@ // Copyright © 2016 Felix Mau. All rights reserved. // -import UIKit import LightweightObservable +import UIKit @IBDesignable open class GradientActivityIndicatorView: UIView { diff --git a/GradientLoadingBar/Feature/GradientLoadingBar/GradientLoadingBarController.swift b/GradientLoadingBar/Feature/GradientLoadingBar/GradientLoadingBarController.swift index bb93295..6025b0d 100644 --- a/GradientLoadingBar/Feature/GradientLoadingBar/GradientLoadingBarController.swift +++ b/GradientLoadingBar/Feature/GradientLoadingBar/GradientLoadingBarController.swift @@ -6,8 +6,8 @@ // Copyright © 2016 Felix Mau. All rights reserved. // -import UIKit import LightweightObservable +import UIKit /// Type-alias for the controller to match pod name. public typealias GradientLoadingBar = GradientLoadingBarController diff --git a/GradientLoadingBar/Feature/GradientLoadingBar/GradientLoadingBarViewModel.swift b/GradientLoadingBar/Feature/GradientLoadingBar/GradientLoadingBarViewModel.swift index b384d9b..e32e8d7 100644 --- a/GradientLoadingBar/Feature/GradientLoadingBar/GradientLoadingBarViewModel.swift +++ b/GradientLoadingBar/Feature/GradientLoadingBar/GradientLoadingBarViewModel.swift @@ -6,8 +6,8 @@ // Copyright © 2017 Felix Mau. All rights reserved. // -import UIKit import LightweightObservable +import UIKit /// This view model checks for the availability of the key-window, /// and adds it as a superview to the gradient-view.