Skip to content

Commit

Permalink
Run swiftformat
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroruizponce authored and github-actions[bot] committed Nov 19, 2024
1 parent cd7d14d commit 7ae09b8
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ private class LoadSimulationButton: Button {
}

private extension Button.State {

@MainActor func makeButton(
style: Button.Style,
title _: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Mistica/Components/Feedback/FeedbackView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public class FeedbackView: UIView {
if let secondaryButton = secondaryButton {
buttonsView.addArrangedSubview(secondaryButton)
}

buttonsView.alignment = .fill
buttonsView.axis = .vertical
buttonsView.spacing = 16
Expand Down
4 changes: 2 additions & 2 deletions Sources/Mistica/Components/InputField/InputField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import Foundation

import UIKit
import Combine
import UIKit

public class InputField: UIView {
private typealias TextInputView = UIView & TextInput
Expand Down Expand Up @@ -391,7 +391,7 @@ public class InputField: UIView {

private func subscribeToPlaceholderChanges() {
backingPlaceholderLabel.publisher(for: \.bounds)
.sink { newBounds in
.sink { _ in
self.updatePlaceholderLayerPosition()
self.updatePlaceholderLayerSize()
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/MisticaTests/UI/ButtonTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ButtonTests: XCTestCase {

override class func setUp() {
super.setUp()

Task { @MainActor in
UIView.setAnimationsEnabled(false)
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7ae09b8

Please sign in to comment.