diff --git a/Sources/BSWInterfaceKit/SwiftUI/Views/AsyncButton.swift b/Sources/BSWInterfaceKit/SwiftUI/Views/AsyncButton.swift index 0745fcbe..c52b978b 100644 --- a/Sources/BSWInterfaceKit/SwiftUI/Views/AsyncButton.swift +++ b/Sources/BSWInterfaceKit/SwiftUI/Views/AsyncButton.swift @@ -13,7 +13,7 @@ public struct AsyncButton: 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 diff --git a/Sources/BSWInterfaceKit/ViewControllers/TextFieldAlertController.swift b/Sources/BSWInterfaceKit/ViewControllers/TextFieldAlertController.swift index 6853fd99..f3f8620e 100644 --- a/Sources/BSWInterfaceKit/ViewControllers/TextFieldAlertController.swift +++ b/Sources/BSWInterfaceKit/ViewControllers/TextFieldAlertController.swift @@ -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)