diff --git a/TIUIElements/Sources/Alerts/Models/AlertAction.swift b/TIUIElements/Sources/Alerts/Models/AlertAction.swift index ef6f43ca..ce2a92a0 100644 --- a/TIUIElements/Sources/Alerts/Models/AlertAction.swift +++ b/TIUIElements/Sources/Alerts/Models/AlertAction.swift @@ -37,7 +37,7 @@ public struct AlertAction: Identifiable { /// Alert button action public let action: VoidClosure? - init(title: String, style: UIAlertAction.Style = .default, action: VoidClosure? = nil) { + public init(title: String, style: UIAlertAction.Style = .default, action: VoidClosure? = nil) { self.title = title self.style = style self.action = action diff --git a/TIUIElements/Sources/Alerts/Protocols/SwiftUIContext.swift b/TIUIElements/Sources/Alerts/Protocols/SwiftUIContext.swift index 9a812b63..7c998fc0 100644 --- a/TIUIElements/Sources/Alerts/Protocols/SwiftUIContext.swift +++ b/TIUIElements/Sources/Alerts/Protocols/SwiftUIContext.swift @@ -28,7 +28,7 @@ public protocol SwiftUIContext: PresentationContext { } @available(iOS 13, *) -extension SwiftUIContext { +public extension SwiftUIContext { var presentedViewController: UIViewController? { UIApplication.shared.windows.first?.rootViewController?.presentedViewController }