Skip to content

Commit

Permalink
Ok
Browse files Browse the repository at this point in the history
  • Loading branch information
piercifani committed Jun 17, 2024
1 parent 64ff8c9 commit 88d4d0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/BSWInterfaceKit/SwiftUI/Views/AsyncButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public struct AsyncButton<Label: View>: View {
self.label = label()
}

public typealias Action = @Sendable () async throws -> Void
public typealias Action = () async throws -> Void
public let action: Action
public let label: Label

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum TextFieldAlertController {
placeholder: String? = nil,
initialValue: String? = nil,
textContentType: UITextContentType? = nil,
actionValidator: @escaping @Sendable ((String) -> Bool) = { $0.count > 0 },
actionValidator: @escaping ((String) -> Bool) = { $0.count > 0 },
onAction: @escaping (String?) -> (),
onCancelAction: (() -> ())? = nil) -> UIViewController {
let alertVC = UIAlertController(title: title, message: subtitle, preferredStyle: .alert)
Expand Down

0 comments on commit 88d4d0f

Please sign in to comment.