fix: small access control fixes

This commit is contained in:
Nikita Semenov 2022-07-24 15:34:09 +03:00
parent 52751dc801
commit 000e88f98a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}