diff --git a/Example/Example/Scenes/AdvancedExample/AdvancedExampleTableViewController.swift b/Example/Example/Scenes/AdvancedExample/AdvancedExampleTableViewController.swift index f4df383..70dabb8 100644 --- a/Example/Example/Scenes/AdvancedExample/AdvancedExampleTableViewController.swift +++ b/Example/Example/Scenes/AdvancedExample/AdvancedExampleTableViewController.swift @@ -21,10 +21,7 @@ final class AdvancedExampleTableViewController: UITableViewController { #colorLiteral(red: 0.9490196078, green: 0.3215686275, blue: 0.431372549, alpha: 1), #colorLiteral(red: 0.9450980392, green: 0.4784313725, blue: 0.5921568627, alpha: 1), #colorLiteral(red: 0.9529411765, green: 0.737254902, blue: 0.7843137255, alpha: 1), #colorLiteral(red: 0.4274509804, green: 0.8666666667, blue: 0.9490196078, alpha: 1), #colorLiteral(red: 0.7568627451, green: 0.9411764706, blue: 0.9568627451, alpha: 1), ] - /// static let firstSectionHeaderHeight: CGFloat = 48 - - /// static let defaultSectionHeaderHeight: CGFloat = 32 } diff --git a/Example/Example/Scenes/SwiftUIExample/SwiftUIExampleView.swift b/Example/Example/Scenes/SwiftUIExample/SwiftUIExampleView.swift index 6784229..925cf30 100644 --- a/Example/Example/Scenes/SwiftUIExample/SwiftUIExampleView.swift +++ b/Example/Example/Scenes/SwiftUIExample/SwiftUIExampleView.swift @@ -34,6 +34,7 @@ struct SwiftUIExampleView: View { // MARK: - Subviews private struct DefaultExampleView: View { + @State private var isVisible = true @@ -69,6 +70,7 @@ private struct DefaultExampleView: View { } private struct CustomColorsExampleView: View { + private enum Config { /// The custom gradient colors we use. /// Source: https://color.adobe.com/Pink-Flamingo-color-theme-10343714/ @@ -112,6 +114,7 @@ private struct CustomColorsExampleView: View { } private struct CustomProgressDurationExampleView: View { + private enum Config { /// The custom progress duration to use. static let progressDuration: TimeInterval = 10 @@ -154,6 +157,7 @@ private struct CustomProgressDurationExampleView: View { // MARK: - Helper private struct RoundedRectangleButtonStyle: ButtonStyle { + func makeBody(configuration: Configuration) -> some View { configuration.label .padding(12) diff --git a/Example/ExampleTests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift b/Example/ExampleTests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift index 1ab78ad..26ce641 100644 --- a/Example/ExampleTests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift +++ b/Example/ExampleTests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift @@ -60,7 +60,7 @@ final class GradientActivityIndicatorViewAnimateIsHiddenTestCase: XCTestCase { wait(for: [expectation], timeout: 1) XCTAssertFalse(gradientActivityIndicatorView.isHidden) - XCTAssertEqual(gradientActivityIndicatorView.alpha, 1.0, accuracy: CGFloat.ulpOfOne) + XCTAssertEqual(gradientActivityIndicatorView.alpha, 1, accuracy: CGFloat.ulpOfOne) } func test_animateIsHidden_withInterruption_shouldShowView_andCallCompletionHandler() { @@ -142,7 +142,7 @@ final class GradientActivityIndicatorViewAnimateIsHiddenTestCase: XCTestCase { wait(for: [expectation], timeout: 1) XCTAssertFalse(gradientActivityIndicatorView.isHidden) - XCTAssertEqual(gradientActivityIndicatorView.alpha, 1.0, accuracy: CGFloat.ulpOfOne) + XCTAssertEqual(gradientActivityIndicatorView.alpha, 1, accuracy: CGFloat.ulpOfOne) } func test_fadeIn_withInterruption_shouldShowView_andCallCompletionHandler() {