fix: small access control fixes
This commit is contained in:
parent
52751dc801
commit
000e88f98a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue