diff --git a/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogButtonsViewController.swift b/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogButtonsViewController.swift index 4996a0b7..a007d4fc 100644 --- a/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogButtonsViewController.swift +++ b/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogButtonsViewController.swift @@ -215,7 +215,6 @@ private class LoadSimulationButton: Button { } private extension Button.State { - @MainActor func makeButton( style: Button.Style, title _: String, diff --git a/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogEmptyStateViewController.swift b/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogEmptyStateViewController.swift index f9bdde50..83b5ef48 100644 --- a/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogEmptyStateViewController.swift +++ b/MisticaCatalog/Source/Catalog/Mistica/Components/UICatalogEmptyStateViewController.swift @@ -199,7 +199,7 @@ extension UICatalogEmptyStateViewController: UITableViewDataSource, UITableViewD view.endEditing(true) let actions: EmptyStateConfiguration.EmptyStateActions - let handler: @Sendable () -> Void = { + let handler: @Sendable() -> Void = { Task { @MainActor in CroutonController.shared.showCrouton(config: SnackbarConfig(title: "The user has tapped any button", dismissInterval: .fiveSeconds)) } diff --git a/MisticaCatalog/Source/Common/Views/UIStepperTableViewCell.swift b/MisticaCatalog/Source/Common/Views/UIStepperTableViewCell.swift index dc8e2284..3e591f42 100644 --- a/MisticaCatalog/Source/Common/Views/UIStepperTableViewCell.swift +++ b/MisticaCatalog/Source/Common/Views/UIStepperTableViewCell.swift @@ -15,7 +15,7 @@ public class UIStepperTableViewCell: UITableViewCell { private let numberOfStepsLabel = UILabel() private lazy var textStackView = UIStackView(arrangedSubviews: [titleLabel, numberOfStepsLabel]) private lazy var numberOfStepsStackView = UIStackView(arrangedSubviews: [textStackView, numberOfStepsStepper]) - var didValueChange: (@MainActor @Sendable (UIStepper) -> Void)? + var didValueChange: (@MainActor @Sendable(UIStepper) -> Void)? var minValue: Double { get { numberOfStepsStepper.minimumValue } diff --git a/MisticaCatalog/Source/Common/Views/UISwitchTableViewCell.swift b/MisticaCatalog/Source/Common/Views/UISwitchTableViewCell.swift index 80e3dc03..90728633 100644 --- a/MisticaCatalog/Source/Common/Views/UISwitchTableViewCell.swift +++ b/MisticaCatalog/Source/Common/Views/UISwitchTableViewCell.swift @@ -16,7 +16,7 @@ public class UISwitchTableViewCell: UITableViewCell { set { `switch`.isOn = newValue } } - public var didValueChange: (@MainActor @Sendable (UISwitch) -> Void)? + public var didValueChange: (@MainActor @Sendable(UISwitch) -> Void)? public init(reuseIdentifier: String?) { super.init(style: .default, reuseIdentifier: reuseIdentifier) diff --git a/Sources/Mistica/Components/Feedback/FeedbackView.swift b/Sources/Mistica/Components/Feedback/FeedbackView.swift index fe6e5a00..52926a1f 100644 --- a/Sources/Mistica/Components/Feedback/FeedbackView.swift +++ b/Sources/Mistica/Components/Feedback/FeedbackView.swift @@ -215,7 +215,7 @@ public class FeedbackView: UIView { if let secondaryButton = secondaryButton { buttonsView.addArrangedSubview(secondaryButton) } - + buttonsView.alignment = .fill buttonsView.axis = .vertical buttonsView.spacing = 16 diff --git a/Sources/Mistica/Components/InputField/InputField.swift b/Sources/Mistica/Components/InputField/InputField.swift index 9b56944f..a101ab45 100644 --- a/Sources/Mistica/Components/InputField/InputField.swift +++ b/Sources/Mistica/Components/InputField/InputField.swift @@ -8,8 +8,8 @@ import Foundation -import UIKit import Combine +import UIKit public class InputField: UIView { private typealias TextInputView = UIView & TextInput @@ -391,7 +391,7 @@ public class InputField: UIView { private func subscribeToPlaceholderChanges() { backingPlaceholderLabel.publisher(for: \.bounds) - .sink { newBounds in + .sink { _ in self.updatePlaceholderLayerPosition() self.updatePlaceholderLayerSize() } diff --git a/Tests/MisticaTests/UI/ButtonTests.swift b/Tests/MisticaTests/UI/ButtonTests.swift index 80636802..70bb3746 100644 --- a/Tests/MisticaTests/UI/ButtonTests.swift +++ b/Tests/MisticaTests/UI/ButtonTests.swift @@ -19,7 +19,7 @@ final class ButtonTests: XCTestCase { override class func setUp() { super.setUp() - + Task { @MainActor in UIView.setAnimationsEnabled(false) } @@ -421,7 +421,7 @@ final class ButtonTests: XCTestCase { private extension ButtonTests { func makeTemplateWithAllButtonStates(style: Button.Style, isSmall: Bool, leftImage: Bool = false, rightImage: Button.RightImage? = nil) -> UIView { let leftImage = leftImage ? Button.LeftImage.custom(image: ButtonTests.Constants.leftImage) : nil - + let buttonNormalState = Button() buttonNormalState.title = "Normal" buttonNormalState.style = style